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
+1 -1
View File
@@ -47,7 +47,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
// cache on edge for 12 hours
const { res } = context;
res.setHeader("cache-control", "s-maxage=43200, stale-while-revalidate");
res.setHeader("cache-control", "s-maxage=43200, stale-while-revalidate=3600");
// next-sitemap takes care of the rest of the response for us
return getServerSideSitemap(context, pages);