-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable ETag for res.sendFile()
#2294
Comments
@ritch did this make it into 5.x already? |
Hi @ilanbiala you can look at #2237 to see what has been checked off. The answer for this is no, especially since there is not hard date for 5.0 yet. |
juanarbol
added a commit
to juanarbol/express
that referenced
this issue
Oct 18, 2024
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 <[email protected]>
wesleytodd
pushed a commit
to juanarbol/express
that referenced
this issue
Feb 13, 2025
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 <[email protected]>
wesleytodd
pushed a commit
that referenced
this issue
Feb 13, 2025
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: #2294 Signed-off-by: Juan José Arboleda <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: