# 禁用ETag生成

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.jsand disable the generateEtagsoption:

module.exports = {
  generateEtags: false,
}

Introduction to next.config.jsLearn more about the configuration file used by Next.js.

Last Updated: 5/13/2023, 8:55:38 PM