mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26:34 +02:00
🐛 Increase cache and set content length
This commit is contained in:
parent
cd8d61e64b
commit
ab0c6d4b39
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,8 @@ export async function GET(req: NextRequest) {
|
|||
return new NextResponse(buffer, {
|
||||
headers: {
|
||||
"Content-Type": contentType,
|
||||
"Cache-Control": "public, max-age=3600",
|
||||
"Content-Length": buffer.length.toString(),
|
||||
"Cache-Control": "max-age=86400",
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue