Welcome! Log In Create A New Profile

Advanced

Re: gzip_disable doesn't disable gzip_vary

Maxim Dounin
March 02, 2012 06:22AM
Hello!

On Fri, Mar 02, 2012 at 05:15:07PM +0700, Edho Arief wrote:

> 2012/3/2 Maxim Dounin <mdounin@mdounin.ru>:
> >
> > This is intentional, "Vary" is returned whenever gzip (and
> > gzip_vary) is enabled, as response representation depends on
> > header(s) listed.
> >
> > Strictly speaking, it should also include User-Agent in case of
> > gzip_disable defined.
> >
>
> Shouldn't there be no change to header at all when client user agent
> matches the gzip_disabled (ie. just like with gzip off)?

http://tools.ietf.org/html/rfc2616#section-14.44

An HTTP/1.1 server SHOULD include a Vary header field with any
cacheable response that is subject to server-driven negotiation.

For sure with gzip enabled the response "is subject to server-driven
negotiation".

Maxim Dounin

_______________________________________________
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: 302
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