-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
ETag question. About disable or not #2290
Comments
@raymondfeng can someone help this user? |
For a solution that works right now you can do: res.sendFile('ciao.html', {etag: false}); Long term there are a couple issues with @dougwilson what if we moved the etag utilities into a separate module and used that to handle |
The etags in express use a checksum method to calculate the etags. |
@ritch you're welcome to submit a PR over to |
@dougwilson do you think ...and just ignore |
In express 5.0, maybe. It's a pretty breaking change. |
I guess the only real issue here is globally setting |
I don't know. The setting casing doesn't really fit with the others. Anyway, if you think it's a good idea, you may want to create a new issue in the repo marked as "idea" to get input from the community. |
Maybe just make the etag setting pass to send in a future breaking version? |
|
thanks @ritch |
Hi,
if I disable "etag" option with
app.disable('etag');
and after that send a random string likeres.send('ciao')
; no ETag header will display. okbut if I send a static file (still
app.disable('etag');
) likeres.sendFile('ciao.html')
; ETag header will display. Is it correct?The text was updated successfully, but these errors were encountered: