PATCH: vary on gzip

Poul-Henning Kamp phk at
Tue Aug 26 14:26:29 CEST 2014

In message <CAJV_h0bfQstBU=hQ60=HDhAyp8AGwVhRx30_OBdQ10Sp4R1ufA at>
, Federico Schwindt writes:

>Does this mean that doing it in vfp_gzip_init() or cache_gzip.c would be
>appropriate or preferred?

I probably lost context for "it" here :-)

But if you look in -trunk, you'll see for instance vfp_gzip_init()

        if (vfe->vfp->priv2 == VFP_GUNZIP || vfe->vfp->priv2 == VFP_GZIP) {
                http_Unset(vc->http, H_Content_Encoding);
                http_Unset(vc->http, H_Content_Length);

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-dev mailing list