ESI and Gzip
linuxsupport
lin.support at gmail.com
Thu Oct 18 13:16:51 CEST 2012
Hi All,
I was testing ESI and Gzip in varnish
Backend - Apache 2.2.17
Varnish - 3.03
It works well, however, I found that varnish is not able to compress the
contents as much as Apache deflate does.
Total size of the contents was 68KB, when served directly from Apache it
shows 16KB on the google chrome (checked through Chrome developer tools),
same contents when served from Varnish the size was 28KB
Anyone of you have experienced this? is it normal or there is still scope
to improve this?
Here is the configuration which I used
sub vcl_fetch {
if(req.url == "/test.html"){
set beresp.do_esi = true;
set beresp.do_gzip = true;
}
}
Also, tried removing Accept-Encoding header from vcl_miss as below
sub vcl_miss {
if(req.url == "/test.html"){
unset bereq.http.accept-encoding;
}
}
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20121018/df324b7d/attachment.html>
More information about the varnish-misc
mailing list