Skip to content

Commit

Permalink
remove cache-control from _doc to test
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed Feb 21, 2024
1 parent cc8fae8 commit 6f6209e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ class MyDocument extends Document {
},
): Promise<DocumentInitialProps & MyDocumentProps> {
// set cache control header
context.res?.setHeader(
'Cache-Control',
'public, max-age=10, s-maxage=10, stale-while-revalidate=10',
)
// context.res?.setHeader(
// 'Cache-Control',
// 'public, max-age=10, s-maxage=10, stale-while-revalidate=10',
// )

invariant(context.req)
const jwt = context.req?.cookies?.[COOKIE_JWT_TOKEN] || null
Expand Down

0 comments on commit 6f6209e

Please sign in to comment.