Welcome! Log In Create A New Profile

Advanced

gzip_disable doesn't disable gzip_vary

Edho Arief
March 02, 2012 02:10AM
I noticed that with this setting:

gzip on;
gzip_vary on;
gzip_disable "msie6";

Header "Vary: Accept-Encoding" will always be returned even though the
user agent is ie6 (and therefore not using gzip):

# curl -I http://animebsd.net/about/feed -A "Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.0)"
HTTP/1.1 200 OK
Server: nginx/1.1.14
Date: Fri, 02 Mar 2012 07:04:25 GMT
Content-Type: text/xml; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
X-Pingback: http://animebsd.net/xmlrpc.php
Last-Modified: Fri, 02 Mar 2012 04:17:00 GMT
ETag: "92a5989a0949b85e303228490256ebf2"
X-Powered-By: W3 Total Cache/0.9.2.4
Link: http://wp.me/Pig2n-5B; rel=shortlink

I don't think this is intentional as getting non-gzipped content
doesn't return such header. (I've verified this is returned by nginx
by running same test with disabled gzip_vary)

(I don't see mention of this being fixed in .15 and .16 in the
changelog so I haven't tested with them)

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

gzip_disable doesn't disable gzip_vary

Edho Arief March 02, 2012 02:10AM

Re: gzip_disable doesn't disable gzip_vary

Maxim Dounin March 02, 2012 05:00AM

Re: gzip_disable doesn't disable gzip_vary

Edho Arief March 02, 2012 05:16AM

Re: gzip_disable doesn't disable gzip_vary

Maxim Dounin March 02, 2012 06:22AM

Re: gzip_disable doesn't disable gzip_vary

Edho Arief March 02, 2012 06:44AM

Re: gzip_disable doesn't disable gzip_vary

Maxim Dounin March 02, 2012 07:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
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