Welcome! Log In Create A New Profile

Advanced

nginx removes strong etags on gzip compression

January 01, 2020 07:19AM
Hi, I'm using nginx as a reverse proxy and found a behavior that I wouldn't expect.

According to some references below, I assume nginx would downgrade strong etags to weak ones when it modifies response content (e.g. gzip compression). But nginx removes strong etags on gzip compression instead of a downgrade.

- http://nginx.org/en/CHANGES (See "Changes with nginx 1.7.3 08 Jul 2014")
- > *) Feature: weak entity tags are now preserved on response modifications, and strong ones are changed to weak.
- https://github.com/nginx/nginx/commit/def16742a1ec22ece8279185eb2b798eb5ffa031
- > Entity tags: downgrade strong etags to weak ones as needed.

I created a gist to reproduce the behavior with minimum requirements, please see https://gist.github.com/ohbarye/86f2d5b464f5e88821133c43a9cf4956

So my question is: Is it expected behavior that nginx removes strong etags on gzip compression?

Regards
Subject Author Posted

nginx removes strong etags on gzip compression

ohbarye January 01, 2020 07:19AM

Re: nginx removes strong etags on gzip compression

Francis Daly January 02, 2020 06:32AM

Re: nginx removes strong etags on gzip compression

ohbarye January 02, 2020 12:04PM

Re: nginx removes strong etags on gzip compression

J.R. January 02, 2020 09:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready