[nginx] Vary header is repeated twice in response

Yury Kirpichev ykirpichev at gmail.com
Tue Apr 1 10:54:56 UTC 2014


I've got an issue that "Vary" header is repeated twice in response when
"gzip_vary  on" is specified in config file;

My configuration is the following:
Two instances of nginx are running on different hosts (A and B)
There is
    location /smth/ {
        proxy_pass http://B/smth;

   gzip_vary on;
in config for  host A.

B adds "Vary: Accept-Encoding" in response for http://B/smth

And then if http://A/smth request is performed "Vary" header is returned
twice in response.
< Connection: keep-alive
< Vary: Accept-Encoding
< Vary: Accept-Encoding
< date: Tue, 01 Apr 2014 10:02:27 GMT
< expires: Tue, 01 Apr 2014 10:07:27 GMT
< server: nginx/1.4.4

Could you please help me to resolve this problem? Is it known issue or it
is normal behaviour or may be something wrong on my side?

BR/ Yury
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140401/602cbdf3/attachment.html>

More information about the nginx-devel mailing list