1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 20:35:49 -04:00

lengthen cache-control headers

This commit is contained in:
2022-05-02 10:29:01 -04:00
parent d8d7d7d775
commit 64303400a4
10 changed files with 36 additions and 27 deletions

View File

@@ -41,8 +41,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
// https://developer.mozilla.org/en-US/docs/Web/Manifest#deploying_a_manifest
res.setHeader("content-type", "application/manifest+json; charset=utf-8");
// cache on edge for one day
res.setHeader("cache-control", "s-maxage=604800, stale-while-revalidate");
// cache on edge for one week
res.setHeader("cache-control", "s-maxage=604800, stale-while-revalidate=86400");
res.write(JSON.stringify(manifest));
res.end();