Note: You are viewing the new Next.js documentation. The old docs are still available here.

Disabling ETag Generation

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:

module.exports = {
  generateEtags: false,

Related permalink