<div dir="ltr">You need to add the function said by Lasse Karstensen in your vcl at the end.<br><div><br></div><div>And no, he did not mean to delete that code. Just add the code he said to your vcl to optimize varnish pipe usage.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 8:15 PM, Hernán Marsili <span dir="ltr"><<a href="mailto:hernan@cmsmedios.com" target="_blank">hernan@cmsmedios.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Lasse, thank you for your response. Excuse my ignorance but I don't quite understand where to put that or which is the line causing that. Could you please elaborate?<div>
<br></div><div>Also, you meant I can delete this?</div>
<div><pre style>#normalizar el accept encoding ("Vary") para evitar caching duplicado     
        if (req.http.Accept-Encoding) {
          if (req.url ~ "\.(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$") {
            # No point in compressing these        
            remove req.http.Accept-Encoding;      
          } elsif (req.http.Accept-Encoding ~ "gzip") {        
            set req.http.Accept-Encoding = "gzip";      
          } elsif (req.http.Accept-Encoding ~ "deflate") {        
            set req.http.Accept-Encoding = "deflate";      
          } else {        
            # unkown algorithm        
            remove req.http.Accept-Encoding;      
          }     
        }</pre></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><div><p style="font-family:Arial,Verdana,sans-serif;font-size:12px"></p><p style="font-size:small"></p><div><div>Saludos,</div>

<div><span style="font-size:12px"><address><span style="font-size:small;font-style:normal">Hernán.</span></address></span><div style="padding:5px;margin:0px"><address><div style="padding:5px;margin:0px"><address><address style="font-style:normal"><br>

<font face="Arial, Verdana, sans-serif"><span style="font-size:12px"><img src="http://www1.tfsla.com/descargas/tfs-logo-firma-blue.jpg" alt="logo tfs" align="left" vspace="5" hspace="5"></span></font></address><address style="font-style:normal;font-family:Arial,Verdana,sans-serif;font-size:12px"> </address><address style="font-family:Arial,Verdana,sans-serif;font-size:12px"><a href="http://www.cms-medios.com/" target="_blank">http://www.cms-medios.com</a><span style="font-style:normal"> | </span><a href="http://blog.tfsla.com/" target="_blank">http://blog.tfsla.com</a><span style="font-style:normal"> | </span><a href="http://facebook.com/cmsmedios" target="_blank">facebook.com/cmsmedios</a></address><address style="font-family:Arial,Verdana,sans-serif;font-size:12px">cel +54 [911] 4945 2272<span style="font-style:normal"> | </span>skype hmarsili<span style="font-style:normal"> | </span>Linkedin<span style="font-style:normal"> </span><a href="http://ar.linkedin.com/in/hmarsili" target="_blank">ar.linkedin.com/in/hmarsili</a></address><address style="font-family:Arial,Verdana,sans-serif;font-size:12px">Suscribite a nuestras novedades por e-mail o RSS feed o Twitter @tfsla  <a href="http://feedburner.google.com/fb/a/mailverify?uri=Twitter/Tfsla&loc=es_ES" target="_blank">>></a></address><address style="font-style:normal;font-family:Arial,Verdana,sans-serif;font-size:12px"><br>

</address><address style="font-style:normal;font-family:Arial,Verdana,sans-serif"><font color="#0000ff" size="1">Argentina +54 11 4711-8999 | USA +1 305 722-5130 | México +52 55 5350-1090 | España +34 93 179-0330 | El Salvador +503 21 13-9730 | Venezuela +58 212 335-1180 | Colombia +57 1 508-7840</font></address></address></div>

</address></div></div></div><p></p><p></p></div><div><span style="font-size:12px"></span></div></div><div><span style="font-size:12px"><address><span style="font-size:small;font-style:normal"><span style="font-family:Arial,Verdana,sans-serif;font-size:12px"></span></span></address></span></div>

</div></div><div class="">
<br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 7:28 AM, Lasse Karstensen <span dir="ltr"><<a href="mailto:lkarsten@varnish-software.com" target="_blank">lkarsten@varnish-software.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Feb 24, 2014 at 04:35:40PM -0300, Hernán Marsili wrote:<br>
[..]<br>
<div>> We are getting an erratic behavior with the HTML caching. Sometime it<br>
> works, sometimes it doesn't but we are we are getting MISS when we should<br>
> be getting HITs. Or for example, we get a MISS, refresh and get a HIT.<br>
> Close the browser, enter again and we get another MISS.<br>
> Here is the VCL we built. <a href="http://paste.ubuntu.com/6990596/" target="_blank">http://paste.ubuntu.com/6990596/</a><br>
> Any help will be much appreciated.<br>
<br>
</div>I can't really say that your VCL supports the problem you are describing.<br>
<br>
However, request pipelining/connection reuse and return(pipe) often does bite<br>
a bit, so I suggest you add this snippet and try again:<br>
<br>
    sub vcl_pipe {<br>
        set bereq.http.connection = "close";<br>
    }<br>
<br>
(and you can remove the Accept-Encoding section, Varnish does that internally in 3.0)<br>
<span><font color="#888888"><br>
--<br>
With regards,<br>
Lasse Karstensen<br>
Varnish Software AS<br>
</font></span></blockquote></div><br></div></div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br></div>