using varnish as compression offloader

Enno van Amerongen enno at tty.nl
Fri Aug 5 15:48:07 CEST 2011


Lars Jørgensen wrote:
>> gzip offloader case:
>> If; "Accept Encoding: gzip" request comes, varnish can strip this
>> using VCL and ask to the backend WITHOUT "Accept-Encoding". The server
>> will sent clear text reply. Varnish will gzip it, cache it in gzip
>> form and reply to the client as gzipped as asked.
>> client - gzip - varnish - non gzip - server - non gzip -  varnish -
>> gzip - client
>>     
>
> No. Varnish cannot gzip objects. Have a look at https://www.varnish-cache.org/docs/trunk/phk/gzip.html
>   
no? you mean YES!

"set beresp.do_gzip = true;
Will make varnish gzip the object during fetch from the backend,
provided the backend didn’t send us a gzip’ed object."





More information about the varnish-misc mailing list