Xavier Noria
June 04, 2015 03:18AM
I have used gzip_static for some years without any issue that I am aware of
with the default gzip_vary off.

My reasoning is that the HTTP spec says in

http://tools.ietf.org/html/rfc2616#page-145

that "the Vary field value advises the user agent about the criteria that
were used to select the representation", and my understanding is that
compressed content is not a representation per se. The representation would
be the result of undoing what Content-Encoding says.

So, given the same .html endpoint you could for example serve content in a
language chosen according to Accept-Language. That's a representation that
depends on headers in my understanding. If you serve the same .css over and
over again no matter what, the representation does not vary. The compressed
thing that is transferred is not the representation itself, so no Vary
needed.

Do you guys agree with that reading of the spec?

Then, you read posts about buggy proxy servers. Have any of you founded a
real (modern) case in which the lack of "Vary: Accept-Encoding" resulted in
compressed content being delivered to a client that didn't support it? Or
are those proxies mythical criatures as of today?

Thanks!

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

Accept-Encoding: gzip and the Vary header

Xavier Noria June 04, 2015 03:18AM

Re: Accept-Encoding: gzip and the Vary header

Jason Woods June 04, 2015 04:58AM

Re: Accept-Encoding: gzip and the Vary header

Xavier Noria June 04, 2015 05:52AM

Re: Accept-Encoding: gzip and the Vary header

Maxim Dounin June 04, 2015 09:12AM

Re: Accept-Encoding: gzip and the Vary header

Xavier Noria June 04, 2015 09:44AM

Re: Accept-Encoding: gzip and the Vary header

Maxim Dounin June 04, 2015 10:26AM

Re: Accept-Encoding: gzip and the Vary header

Xavier Noria June 04, 2015 03:38PM

Re: Accept-Encoding: gzip and the Vary header

Xavier Noria June 04, 2015 03:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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