Welcome! Log In Create A New Profile


duplicate Vary: Accept-Encoding header

June 25, 2013 02:52AM
I use nginx 1.4.1 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:

user@aladin:~$ curl -I -A test
HTTP/1.1 302 Found
Server: nginx
Date: Tue, 25 Jun 2013 06:45:12 GMT
Content-Type: text/html
Connection: keep-alive
Vary: Accept-Encoding
Location: index.htm
Vary: Accept-Encoding

I have no control of the upstream server maybe it sends 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.

duplicate Vary: Accept-Encoding header

philippJune 25, 2013 02:52AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 5 on August 04, 2015
Record Number of Guests: 244 on October 02, 2015
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready