gzip not working in Varnish 4.1

Miguel González miguel_3_gonzalez at yahoo.es
Sat Nov 12 19:48:06 CET 2016


On 11/10/16 8:22 PM, Geoff Simmons wrote:
> On 11/10/2016 07:52 PM, Miguel González wrote:
> 
>> My vcl backend_response is below, do I need to set somewhere 
>> beresp.do_gzip = true even when I set it for varnishd?
> 
> Yes.
> 
> 
> HTH,
> Geoff
> 

It seems that adding this to vcl backend_response it worked:

        if (beresp.http.content-type ~ "text") {

          set beresp.do_gzip = true;
        }

now works :)

Miguel





More information about the varnish-misc mailing list