Welcome! Log In Create A New Profile

Advanced

Re: Possible gzip_vary bug? (v1.5.1)

Maxim Dounin
June 19, 2013 09:50AM
Hello!

On Wed, Jun 19, 2013 at 08:52:14AM -0400, Fleshgrinder wrote:

> I'm running the latest development version of nginx and gzipping is working.
> But no Vary Accept-Encoding header is added to any gzip response. The
> gzip_http_version isn't affecting the behavior, no matter if I set it to 1.0
> or 1.1 no header is sent. Even if I add the header myself via the add_header
> directive, nothing.
>
> If I use PHP to add the header it's there. Any ideas what the problem could
> be?
>
> My configure options:
> https://github.com/MovLib/www/blob/master/conf/install-scripts/nginx.sh
> My configuration: https://github.com/MovLib/www/tree/master/conf/nginx
> Specifically the gzip configuration:
> https://github.com/MovLib/www/blob/master/conf/nginx/conf/gzip.conf

Works fine here:

: GET / HTTP/1.1
: Host: foo
: Accept-Encoding: gzip
:
: HTTP/1.1 200 OK
: Server: nginx/1.5.2
: Date: Wed, 19 Jun 2013 13:23:39 GMT
: Content-Type: text/html
: Last-Modified: Mon, 27 Apr 2009 14:40:49 GMT
: Transfer-Encoding: chunked
: Connection: keep-alive
: Vary: Accept-Encoding
: Content-Encoding: gzip

Best guess that in your case gzipping happens not in nginx (in
php?), and add_header doesn't work for you due to other add_header
directives used on more specific levels.

Alternatively, you might be testing with spdy, where gzip_vary
does nothing as all clients are required to support gzip.

If you still think there is a bug, you may want to provide a
simple configuration to reproduce the problem.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

Possible gzip_vary bug? (v1.5.1)

Fleshgrinder June 19, 2013 08:52AM

Re: Possible gzip_vary bug? (v1.5.1)

Maxim Dounin June 19, 2013 09:50AM

Re: Possible gzip_vary bug? (v1.5.1)

Fleshgrinder June 19, 2013 01:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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