You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
res.sendFile() accepts an option to disable ETags. It would make sense that app.disable('etag') sets sendFile()s options.etag to false for you. This is a breaking change so it would have to wait for 5.x.
The text was updated successfully, but these errors were encountered:
This patch introduces the ability to control the ETag generation
through the `res.sendFile` function. Specifically, the ETag option
is wired to the application's configuration, allowing it to be
enabled or disabled based on the app's settings.
Fixes: expressjs#2294
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
res.sendFile()
accepts an option to disable ETags. It would make sense thatapp.disable('etag')
setssendFile()
soptions.etag
tofalse
for you. This is a breaking change so it would have to wait for5.x
.The text was updated successfully, but these errors were encountered: