Skip to content
You are currently viewing documentation for the canary channel of Next.js.

generateEtags

Next.js will generate etags for every page by default. You may want to disable etag generation for HTML pages depending on your cache strategy.

Open next.config.js and disable the generateEtags option:

next.config.js
module.exports = {
  generateEtags: false,
}