gzip_disable doesn't disable gzip_vary
mdounin at mdounin.ru
Fri Mar 2 11:20:47 UTC 2012
On Fri, Mar 02, 2012 at 05:15:07PM +0700, Edho Arief wrote:
> 2012/3/2 Maxim Dounin <mdounin at 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)?
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
More information about the nginx