diff --git a/pages/[[...slug]].tsx b/pages/[[...slug]].tsx index c9beda0..e9cc562 100644 --- a/pages/[[...slug]].tsx +++ b/pages/[[...slug]].tsx @@ -173,7 +173,10 @@ export const getServerSideProps: GetServerSideProps = async ({ params, req, res }; } - res.setHeader('Cache-Control', 'public, s-maxage=10, stale-while-revalidate=3600'); + // XXX: staunch bleeding for now for supabase overuse. one month caching. + const oneMonth = 60 * 60 * 24 * 30; + res.setHeader('Cache-Control', `public, s-maxage=${oneMonth}`); + // res.setHeader('Cache-Control', 'public, s-maxage=10, stale-while-revalidate=3600'); return addApolloState(client, { props: { username, name, host },