1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Disable NextJS ETag generation.

This commit is contained in:
brannon
2022-06-02 17:10:05 -06:00
parent d575b8edd6
commit a1d48880c9

View File

@@ -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,
}