Safety of setting "beresp.do_gzip" in vcl_backend_response

Guillaume Quintard guillaume at
Thu Apr 13 08:44:20 CEST 2017

You are right, subsequent requests will just be passed to the backend, so
no gzip manipulation/processing will occur.

Guillaume Quintard

On Thu, Apr 13, 2017 at 12:49 AM, Nigel Peck <np.lists at>

> Hi,
> I am implementing compression in vcl_backend_response, by setting
> "beresp.do_gzip" on appropriate Content-Type's. I am wondering if it is
> safe to do this even on responses that may subsequently get set as
> uncacheable by later code?
> It seems safe to me, but just wanting to check in case I'm missing
> something. I assume that if a response is subsequently set uncacheable then
> "beresp.do_gzip" will simply have no affect?
> Thanks
> Nigel
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list