Tweak cache control for function

This commit is contained in:
Gabriel Simmer 2023-05-05 10:55:49 +01:00
parent ffe9ca347c
commit fb312c051b
Signed by: arch
GPG key ID: C81B106D46C5B875

View file

@ -32,7 +32,7 @@ export default async (request: NextRequest) => {
return new Response(JSON.stringify(data), {
headers: {
'content-type': 'application/json',
'cache-control': 'public, s-maxage=3600, stale-while-revalidate=600',
'cache-control': 'public, max-age=600, stale-while-revalidate=1200',
},
});
};