<div dir="ltr"><div><div><div><div>First off, 3.0.7 is EOL. Move to 4.x as soon as you can<br><br></div>Second, I'd leave the entire stanza out of VCL. The varnish defaults handle compression without issue in most cases. If the backend serves compressed data, it'll be cached as compressed, and served as compressed.<br><br></div>Third, once you 'pipe' a request, varnish does nothing other than packet forwarding. It can't cache, it can't balance requests across backends, nothing.<br><br></div>If the above doesn't resolve your problem, try to capture a request Client and Backend side transaction in varnishlog. That will help diagnose what the real problem is.<br><br></div>-Jason<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 30, 2015 at 11:42 AM, <a href="mailto:georgi.int@gmail.com">georgi.int@gmail.com</a> <span dir="ltr"><<a href="mailto:georgi.int@gmail.com" target="_blank">georgi.int@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I have been using varnish 3.7 only as a proxy server for apache and have a following lines in default.vcl which should handle the encodings:<br>
<br>
if (req.http.Accept-Encoding) {<br>
if (req.http.Accept-Encoding ~ "gzip") {<br>
# If the browser supports it, we'll use gzip.<br>
#set req.http.Accept-Encoding = "gzip";<br>
unset req.http.Accept-Encoding;<br>
}<br>
else if (req.http.Accept-Encoding ~ "deflate") {<br>
# Next, try deflate if it is supported.<br>
set req.http.Accept-Encoding = "deflate";<br>
}<br>
else {<br>
# Unknown algorithm. Remove it and send unencoded.<br>
unset req.http.Accept-Encoding;<br>
}<br>
}<br>
<br>
Although, customers which have mod_deflate rules in .htaccess file experience the problem that their sites are not compressed. If I pipe the site to apache site is compressed. SO, my question is what is the problem with the deflate and my varnish configuration? Is it required to add something other to varnish to work the deflate? I tried a couple of things which I found in the net, but nothing worked.<br>
<br>
Thank you in advance for your answers!<br>
<br>
Best regards,<br>
Georgi<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br></div>