This page is also available as Markdown: request this page's URL with an
Accept: text/markdown header. For an index of Next.js 14 Pages Router documentation, see /docs/14/pages/llms.txt.generateEtags
Last updated June 28, 2023
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,
}Was this helpful?