Nginx - missing etag when using gzip

If I install nginx to use gzip, it removes any etag header.

The rationale for this is that the same resource cannot be identical byte for a byte, given that gzip has different compression levels.

But nginx also removes the weak etag, which means the resources are semantically equivalent. This seems like nginx misbehaving.

Am I missing something? If not, is there a way to fix this?

wiki

+8
gzip nginx etag
source share
1 answer

You must upgrade to nginx 1.7.3 or higher.

Function: tags of weak objects are now saved with response modifications, while strong ones are saved for weak ones.

+9
source share

All Articles