Skip to content

Commit

Permalink
Disable NextJS ETag generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
brannon committed Jun 2, 2022
1 parent d575b8e commit a1d4888
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.