<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1429203791872_7333"><span id="yui_3_16_0_1_1429203791872_7338">Running a curl -I against a txt file, I get this:</span></div><div id="yui_3_16_0_1_1429203791872_7339" dir="ltr"><br><span id="yui_3_16_0_1_1429203791872_7338"></span></div><div id="yui_3_16_0_1_1429203791872_7356" dir="ltr"><span id="yui_3_16_0_1_1429203791872_7338">HTTP/1.1 200 OK<br style="" class="">Date: Thu, 16 Apr 2015 17:20:02 GMT<br style="" class="">Vary: Accept-Encoding,User-Agent<br style="" class="">Last-Modified: Thu, 23 Sep 2010 14:56:01 GMT<br style="" class="">Cache-Control: max-age=3600, public<br style="" class="">Expires: Thu, 16 Apr 2015 18:20:02 GMT<br style="" class="">Pragma: public<br style="" class="">Content-Type: text/plain<br style="" class="">Age: 0<br style="" class="">ETag: W/"460f-490ee75dee240-gzip"<br style="" class="">x-Cache: uncached<br style="" class="">Connection: keep-alive<br style="" class=""></span></div><div id="yui_3_16_0_1_1429203791872_7357" dir="ltr"><br></div><div id="yui_3_16_0_1_1429203791872_7633" dir="ltr">so it seems they are not getting cached and getting an User-Agent in Vary.<br></div><br><span id="yui_3_16_0_1_1429203791872_7338"></span><div id="yui_3_16_0_1_1429203791872_7479" dir="ltr"><span id="yui_3_16_0_1_1429203791872_7338">I'm hosting Wordpress sites with the W3 Total cache plugin running and mod_pagespeed activated. Should I disable some of them?</span></div><div id="yui_3_16_0_1_1429203791872_7671" dir="ltr"><br><span id="yui_3_16_0_1_1429203791872_7338"></span></div><div id="yui_3_16_0_1_1429203791872_7674" dir="ltr"><span id="yui_3_16_0_1_1429203791872_7338">Thanks!</span></div><div id="yui_3_16_0_1_1429203791872_7675" dir="ltr"><br><span id="yui_3_16_0_1_1429203791872_7338"></span></div><div id="yui_3_16_0_1_1429203791872_7676" dir="ltr"><span id="yui_3_16_0_1_1429203791872_7338">Miguel<br></span></div><div id="yui_3_16_0_1_1429203791872_7435" dir="ltr"><br><span id="yui_3_16_0_1_1429203791872_7338"></span></div><div id="yui_3_16_0_1_1429203791872_7436" dir="ltr"><span id="yui_3_16_0_1_1429203791872_7338"></span></div><br> <div id="yui_3_16_0_1_1429203791872_7440" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1429203791872_7439" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1429203791872_7438" dir="ltr"> <hr id="yui_3_16_0_1_1429203791872_7437" size="1"> <font id="yui_3_16_0_1_1429203791872_7441" face="Arial" size="2"> <b><span style="font-weight:bold;">De:</span></b> Reinis Rozitis <r@roze.lv><br> <b><span style="font-weight: bold;">Para:</span></b> varnish-misc@varnish-cache.org <br> <b><span style="font-weight: bold;">Enviado:</span></b> Jueves 16 de abril de 2015 18:04<br> <b><span style="font-weight: bold;">Asunto:</span></b> Re: increase hitrate<br> </font> </div> <div id="yui_3_16_0_1_1429203791872_7483" class="y_msg_container"><br>> I'm realizing that i can only get a hitrate around 0.6 and the throughput <br clear="none">> is around 43 request per second. What am I doing wrong? How can I <br clear="none">> troubleshoot what's going on?<br clear="none">><br clear="none">><br clear="none">> sub vcl_deliver {<br clear="none">> if (obj.hits > 0) {<br clear="none">> set resp.http.X-Cache = "cached";<br clear="none">> } else {<br clear="none">> set resp.http.x-Cache = "uncached";<br clear="none">> }<br clear="none"><br clear="none"><br clear="none">Without going too much into the details, do you get those 43 req/s with the <br clear="none">cached header?<br clear="none">Eg is Varnish even caching anything or just piping the requests back to your <br clear="none">backend (since in the configuration there are quite a lot conditions where <br clear="none">the request is not cached)?<br clear="none"><br clear="none">p.s. for testing purposes just to see the varnish raw throughput take a <br clear="none">static file.<div class="qtdSeparateBR"><br><br></div><div class="yqt9230420396" id="yqtfd94971"><br clear="none"><br clear="none">rr </div><br clear="none"><br clear="none"><br clear="none">_______________________________________________<br clear="none">varnish-misc mailing list<br clear="none"><a shape="rect" ymailto="mailto:varnish-misc@varnish-cache.org" href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br clear="none"><a shape="rect" href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><div class="yqt9230420396" id="yqtfd51107"><br clear="none"></div><br><br></div> </div> </div> </div></body></html>