duplicate Vary: Accept-Encoding header

Makailol Charls makailol7 at gmail.com
Mon Jan 20 04:54:03 UTC 2014


Hello,

I use nginx/1.4.4 with gunzip = on and gzip_vary = on. This leads to a
duplicate Vary Header.

gzip_vary should do nothing if the header is already present:

moki at mysrv:~$ curl -I
http://192.168.1.196/home.html<http://213.223.158.196/home.html>
HTTP/1.1 200 OK
Server: nginx/1.4.4
Date: Sun, 19 Jan 2014 11:30:59 GMT
Content-Type: text/html
Connection: keep-alive
Vary: Accept-Encoding
Vary: Accept-Encoding
Location: home.html

I have no control of the upstream server it may send a Vary header or not,
in order to be safe I would like to use gzip_vary = on in order to prevent
any problems here.

This issue is in standard ngx_http_header_filter_module so can anyone
suggest solution?

Thanks,
Makailol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140120/6eb5165c/attachment.html>


More information about the nginx mailing list