mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 02:36:30 +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, {
|
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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue