yup, just saw that. My bad. Yes you need to remove the Accept-Encoding section. Which means you can remove tht whole part of the code.
On Thu, Feb 27, 2014 at 9:13 AM, Hernán Marsili <[email protected]>wrote: > Hi Tousif, > > On Lasse email, the final note is: (and you can remove the > Accept-Encoding section, Varnish does that internally in 3.0) > > Are you sure he meant otherwise? > > Saludos, > Hernán. > > [image: logo tfs] http://www.cms-medios.com | http://blog.tfsla.com | > facebook.com/cmsmedioscel +54 [911] 4945 2272 | skype hmarsili | Linkedin > ar.linkedin.com/in/hmarsiliSuscribite a nuestras novedades por e-mail o > RSS feed o Twitter @tfsla > >><http://feedburner.google.com/fb/a/mailverify?uri=Twitter/Tfsla&loc=es_ES> > 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 > > > > On Thu, Feb 27, 2014 at 12:41 AM, tousif baig <[email protected]>wrote: > >> You need to add the function said by Lasse Karstensen in your vcl at the >> end. >> >> And no, he did not mean to delete that code. Just add the code he said to >> your vcl to optimize varnish pipe usage. >> >> >> On Wed, Feb 26, 2014 at 8:15 PM, Hernán Marsili <[email protected]>wrote: >> >>> 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? >>> >>> Also, you meant I can delete this? >>> >>> #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; >>> } >>> } >>> >>> >>> Saludos, >>> Hernán. >>> >>> [image: logo tfs] http://www.cms-medios.com | http://blog.tfsla.com | >>> facebook.com/cmsmedioscel +54 [911] 4945 2272 | skype hmarsili | >>> Linkedin ar.linkedin.com/in/hmarsiliSuscribite a nuestras novedades por >>> e-mail o RSS feed o Twitter @tfsla >>> >><http://feedburner.google.com/fb/a/mailverify?uri=Twitter/Tfsla&loc=es_ES> >>> 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 >>> >>> >>> >>> On Wed, Feb 26, 2014 at 7:28 AM, Lasse Karstensen < >>> [email protected]> wrote: >>> >>>> On Mon, Feb 24, 2014 at 04:35:40PM -0300, Hernán Marsili wrote: >>>> [..] >>>> > We are getting an erratic behavior with the HTML caching. Sometime it >>>> > works, sometimes it doesn't but we are we are getting MISS when we >>>> should >>>> > be getting HITs. Or for example, we get a MISS, refresh and get a HIT. >>>> > Close the browser, enter again and we get another MISS. >>>> > Here is the VCL we built. http://paste.ubuntu.com/6990596/ >>>> > Any help will be much appreciated. >>>> >>>> I can't really say that your VCL supports the problem you are >>>> describing. >>>> >>>> However, request pipelining/connection reuse and return(pipe) often >>>> does bite >>>> a bit, so I suggest you add this snippet and try again: >>>> >>>> sub vcl_pipe { >>>> set bereq.http.connection = "close"; >>>> } >>>> >>>> (and you can remove the Accept-Encoding section, Varnish does that >>>> internally in 3.0) >>>> >>>> -- >>>> With regards, >>>> Lasse Karstensen >>>> Varnish Software AS >>>> >>> >>> >>> _______________________________________________ >>> varnish-misc mailing list >>> [email protected] >>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >>> >> >> >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
