Tweak cache control for function
This commit is contained in:
parent
ffe9ca347c
commit
fb312c051b
|
@ -32,7 +32,7 @@ export default async (request: NextRequest) => {
|
||||||
return new Response(JSON.stringify(data), {
|
return new Response(JSON.stringify(data), {
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
'cache-control': 'public, s-maxage=3600, stale-while-revalidate=600',
|
'cache-control': 'public, max-age=600, stale-while-revalidate=1200',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
Loading…
Reference in a new issue