To disable etag generation in Next JS, we have to use the app.disable('etag') syntax. But, this may not work for all static contents. The below mentioned syntax will disable etag for all static contents.

BY Best Interview Question ON 07 Jun 2019

Example

app.use(express.static(path.join(__dirname, 'public'), {

etag: false

}));