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

Weaken outgoing ETags #45

Open
dougwilson opened this issue Jun 9, 2015 · 1 comment
Open

Weaken outgoing ETags #45

dougwilson opened this issue Jun 9, 2015 · 1 comment
Assignees

Comments

@dougwilson
Copy link
Contributor

When the response is compressed, alter any ETag response header to make it a weak ETag.

This is the easiest solution to deal with ETags. It's also what nginx did semi-recently to solve this (before their patch, they always dropped the ETag header completely) in http://trac.nginx.org/nginx/changeset/e491b26fa5a1908eb22dd96d19b4d26e25eeca2c/nginx

@dougwilson dougwilson self-assigned this Jun 9, 2015
@mickaeltr
Copy link

mickaeltr commented Nov 29, 2016

Hello @dougwilson,

I noticed that strong ETags (generated by Express) are the same for compressed and uncompressed responses. Is it somehow possible to generate a different strong ETag when the response is compressed?

My use-case: we have an Express application => nginx => Akamai

  • Akamai only supports strong ETags
  • if the compression is done by nginx, it sets a weak ETag => FAIL
  • if the compression is done by Express, it sends the same (strong) ETag as for the uncompressed response => FAIL

Thank you

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

No branches or pull requests

2 participants