Hi Owais,<div><br></div><div>I would recommend that you read through these:</div><div><br></div><div><a href="https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html">https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html</a></div>
<div><br></div><div><a href="https://www.varnish-cache.org/docs/3.0/tutorial/cookies.html">https://www.varnish-cache.org/docs/3.0/tutorial/cookies.html</a></div><div><a href="https://www.varnish-cache.org/docs/3.0/tutorial/vary.html">https://www.varnish-cache.org/docs/3.0/tutorial/vary.html</a></div>
<div><br></div><div>I'm guessing you have a Vary: Cookie coming from the backend.</div><div><br></div><div>Per.<br><br><div class="gmail_quote">On Fri, Aug 31, 2012 at 7:49 AM, [Digital^Dude] ® <span dir="ltr"><<a href="mailto:millennium.bug@gmail.com" target="_blank">millennium.bug@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="trebuchet ms,sans-serif">Every time I open the website from a different PC, the website loads from the backend. I can see that from the way the page loads, as well as from: varnishtop -b -i TxURL<br>
However, if I access the browsed pages again, it loads rapidly. <br>
<br>Is this what varnish is meant to do? I mean, for server-side caching, it should load pages to each client from the same cache that is present on the server once it is created (as soon as the first visitor comes on the website.)<br>
And it should only expire the cache when TTL is reached.<br><br>The result of this should be that the website should appear slow only for the very first visitor and not after that to any visitor until ttl.<br></font><div class="HOEnZb">
<div class="h5"><br>
<div class="gmail_quote">
On Thu, Aug 30, 2012 at 6:41 PM, [Digital^Dude] ® <span dir="ltr"><<a href="mailto:millennium.bug@gmail.com" target="_blank">millennium.bug@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="trebuchet ms,sans-serif"><br></font>My default.vcl is attached.<div><div><br><br><div class="gmail_quote">On Thu, Aug 30, 2012 at 6:36 PM, Enno van Amerongen <span dir="ltr"><<a href="mailto:enno@tty.nl" target="_blank">enno@tty.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<blockquote style="padding-left:5px;margin-left:5px;border-left:#0000ff 2px solid;margin-right:0px"><b>From:</b> [Digital^Dude] ® [mailto:<a href="mailto:millennium.bug@gmail.com" target="_blank">millennium.bug@gmail.com</a>]<br>
<b>Subject:</b> varnish server-side caching<div><br><br><font face="trebuchet ms,sans-serif">Hi guys,<br><br>I set up varnish 3.0.3 on my centos box. I have magento running on a website. Once the website is opened, it browses rapidly. But every time a new user lands on the website, it takes ages to load the first page. If varnish does server-side caching, shouldn't it pick up the index page from the cache and spit it out?<br>
<br>Please suggest what I can do to make the initial hit on the website as speedy as the rest of the surfing hits.<span></span></font></div></blockquote><div><br></div><div>So, what does your VCL look like? what headers are you setting on the backend? what about cookies?</div>
<div><br></div><div>Maybe this will help: <a href="https://www.varnish-cache.org/trac/wiki/VCLExampleCacheCookies" style="font-size:10pt" target="_blank">https://www.varnish-cache.org/trac/wiki/VCLExampleCacheCookies</a></div>
<span><font color="#888888"><div><br></div><div>Enno</div><blockquote style="padding-left:5px;margin-left:5px;border-left:#0000ff 2px solid;margin-right:0px"><font face="trebuchet ms,sans-serif"><span></span></font></blockquote>
<blockquote style="padding-left:5px;margin-left:5px;border-left:#0000ff 2px solid;margin-right:0px">
</blockquote>
</font></span></div></blockquote></div><br>
</div></div></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><br clear="all"><div><br></div>-- <br>
<img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br><i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>
<br></div></div><br>
</div>