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.

Example

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

etag: false

}));

Suggest An Answer

No suggestions avaliable!