Re-enable API caching

5 minute cache, forcing revalidate when stale. May up this during
FWA or other cons. I'm expecting as time goes on fursona endpoints
stabilise and are updated less often, letting me increase this further.
This commit is contained in:
Gabriel Simmer 2023-05-05 22:21:31 +01:00
parent 85eb771cf7
commit c20ca36a41
Signed by: arch
GPG key ID: C81B106D46C5B875

View file

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