Skip to content
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 #9

Closed
klimashkin opened this issue Aug 25, 2014 · 3 comments
Closed

Disable etag #9

klimashkin opened this issue Aug 25, 2014 · 3 comments
Labels

Comments

@klimashkin
Copy link

Hello!
Is there possibility to disable etag for favicon, like in static middleware?

app.use(express.static('public', { etag: false }));
@dougwilson
Copy link
Contributor

I certainly could add it. What is the reason you would want to disable it?

@klimashkin
Copy link
Author

Just look, that you are buffered headers with the file for the lifetime of the process.
I guess you can close the task :)

@dougwilson
Copy link
Contributor

Ah, yes, since this module just serves an unchanging favicon file, the ETag is just calculated once instead of every request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants