Improve caching

This commit is contained in:
Nikita Karamov 2023-08-30 13:31:31 +02:00
parent 700c830341
commit e2208315d4
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ export const get: APIRoute = async ({ params }) => {
{
status: 200,
headers: {
"Cache-Control": "s-maxage=86400, max-age=86400, public",
"Cache-Control": "public, s-maxage=86400, max-age=604800",
"Content-Type": "application/json",
},
},

View file

@ -57,7 +57,7 @@ export const get: APIRoute = async () => {
),
{
headers: {
"Cache-Control": "s-maxage=86400, max-age=86400, public",
"Cache-Control": "public, s-maxage=86400, max-age=604800",
"Content-Type": "application/json",
},
},