I have searched a lot and still couldn't find a solution, I am using nodejs
with express
which is setting etag
to true by default, I tried all of the solutions i found online and it is still set, examples:
res.set('etag', false);
res.removeHeader('ETag');
app.disable('etag');
app.use(express.static(__dirname + '/public'), { etag: false });
And still it is set, so, is there something i am missing here since i am not really that experienced in node or express.
My question is obviously, how to disable this header, because, I have a page with a lot of images (A LOT) and all of them are static and etag
is causing a lot of blocking since it's sending requests to check validity and preventing the browser from relying on cache-control
, which is hugely increasing page load time.
Thanks for the help