PATCH: vary on gzip

Federico Schwindt fgsch at lodoss.net
Tue Aug 26 13:16:25 CEST 2014


This cannot happen before v_b_r as the gzip'ness of the object could be
changed in there.
It needs to happen after, or before and when changing do_gzip and do_gunzip.



On Tue, Aug 26, 2014 at 11:46 AM, Nils Goroll <slink at schokola.de> wrote:

> As discussed on IRC: I do very much appreciate that you've but this back
> onto
> the agenda, this is important and Varnish needs to get the default Vary
> right.
>
> But I think this needs to live in fetch (before calling v_b_r): The Vary
> header
> does not depend upon the request, so it does not need to live in deliver.
> Doing
> things at delivery time is more costly than at fetch time (because we
> probably
> cache the result).
>
> When backends handle gzip, we also end up with a cache-object with Vary:
> A-E (at
> least for sane backends), so we should get the same result when Varnish
> does the
> compression.
>
> vry_cmp already skips Accept-Encoding, so we should be fine at lookup time.
>
> Nils
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20140826/06c2a72c/attachment.html>


More information about the varnish-dev mailing list