Accept-Encoding: gzip and the Vary header

Xavier Noria fxn at
Thu Jun 4 13:41:32 UTC 2015

On Thu, Jun 4, 2015 at 3:11 PM, Maxim Dounin <mdounin at> wrote:

The problem with Vary is that it causes bad effects on shared caches, in
> particular, it normaly results in cache duplication.

You mean that if client A requests a resource with Accept-Encoding: gzip,
and client B without, and the resource has Cache-Control: public, then a
shared cache would store the compressed and uncompressed responses thus
having the content kind of repeated?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list