Opened 8 years ago

Closed 8 years ago

#875 closed defect (worksforme)

Vary Header Duplicate

Reported by: omer.ozdemir.nemeroth.com@… Owned by:
Priority: minor Milestone:
Component: documentation Version: 1.9.x
Keywords: Cc:
uname -a: 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.9.7
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --with-http_v2_module --with-file-aio --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_secure_link_module --with-http_flv_module --add-module=../headers-more-nginx-module-0.261 --add-module=../ngx_cache_purge-master --add-module=../ngx_mp4_module-0.9.4

Description

Hello,

I have a "gzip" activated Nginx proxy server that is configured with "proxy_cache" directive and set to ignore vary headers at my side and a non Nginx upstream server running gzip enable mod at remote side however, I get doubled "Vary" header entry as it can be seen attached. What can cause this issue?

Thanks in advance

Best regards,

Attachments (1)

vary.PNG (16.5 KB ) - added by omer.ozdemir.nemeroth.com@… 8 years ago.
Duplicate vary header

Download all attachments as: .zip

Change History (2)

by omer.ozdemir.nemeroth.com@…, 8 years ago

Attachment: vary.PNG added

Duplicate vary header

comment:1 by Maxim Dounin, 8 years ago

Resolution: worksforme
Status: newclosed

Likely that's because you have Vary header in a response, and you've added another one using the gzip_vary directive. Consider either removing upstream one with proxy_hide_header and/or switching off gzip_vary.

Note: See TracTickets for help on using tickets.