Skip to content
Permalink
Browse files
Disable NextJS ETag generation.
  • Loading branch information
brannon committed Jun 2, 2022
1 parent d575b8e commit a1d48880c9a6c24aaef4c3f97d199f4150f8092f
Showing 1 changed file with 6 additions and 0 deletions.
@@ -42,4 +42,10 @@ module.exports = {

// https://nextjs.org/docs/api-reference/next.config.js/compression
compress: false,

// ETags break stale content serving from the CDN. When a response has
// an ETag, the CDN attempts to revalidate the content in the background.
// This causes problems with serving stale content, since upon revalidating
// the CDN marks the cached content as "fresh".
generateEtags: false,
}

0 comments on commit a1d4888

Please sign in to comment.