We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ae2d7 commit 9d979c5Copy full SHA for 9d979c5
src/app/api/blob/[owner]/[repository]/[...path]/route.ts
@@ -28,6 +28,8 @@ export async function GET(req: NextRequest, { params }: { params: GetBlobParams
28
const cacheExpirationInSeconds = 60 * 60 * 24 * 30 // 30 days
29
headers.set("Content-Type", "image/*");
30
headers.set("Cache-Control", `max-age=${cacheExpirationInSeconds}`)
31
+ } else {
32
+ headers.set("Content-Type", "text/plain");
33
}
34
return new NextResponse(file, { status: 200, headers })
35
0 commit comments