Improve caching
This commit is contained in:
parent
700c830341
commit
e2208315d4
2 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
|
|
Reference in a new issue