🐛 Increase cache and set content length

This commit is contained in:
Luke Vella 2024-09-08 23:32:17 +01:00
parent cd8d61e64b
commit ab0c6d4b39
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C

View file

@ -44,7 +44,8 @@ export async function GET(req: NextRequest) {
return new NextResponse(buffer, { return new NextResponse(buffer, {
headers: { headers: {
"Content-Type": contentType, "Content-Type": contentType,
"Cache-Control": "public, max-age=3600", "Content-Length": buffer.length.toString(),
"Cache-Control": "max-age=86400",
}, },
}); });
} catch (error) { } catch (error) {