Hi All,<br><br>I was testing ESI and Gzip in varnish<br><br>Backend - Apache 2.2.17<br>Varnish - 3.03<br><br>It works well, however, I found that varnish is not able to compress the contents as much as Apache deflate does.<br>
<br>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<br><br>Anyone of you have experienced this? is it normal or there is still scope to improve this?<br>
<br>Here is the configuration which I used<br><br>sub vcl_fetch {<br> if(req.url == "/test.html"){<br> set beresp.do_esi = true;<br> set beresp.do_gzip = true;<br> }<br>}<br><br>
Also, tried removing Accept-Encoding header from vcl_miss as below<br><br>sub vcl_miss {<br> if(req.url == "/test.html"){<br> unset bereq.http.accept-encoding;<br> }<br>}<br><br>Thanks<br>