varnish server-side caching

Per Buer perbu at varnish-software.com
Fri Aug 31 15:15:02 CEST 2012


Hi Owais,

I would recommend that you read through these:

https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html

https://www.varnish-cache.org/docs/3.0/tutorial/cookies.html
https://www.varnish-cache.org/docs/3.0/tutorial/vary.html

I'm guessing you have a Vary: Cookie coming from the backend.

Per.

On Fri, Aug 31, 2012 at 7:49 AM, [Digital^Dude] ®
<millennium.bug at gmail.com>wrote:

> 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
> However, if I access the browsed pages again, it loads rapidly.
>
> 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.)
> And it should only expire the cache when TTL is reached.
>
> 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.
>
>  On Thu, Aug 30, 2012 at 6:41 PM, [Digital^Dude] ® <
> millennium.bug at gmail.com> wrote:
>
>>
>> My default.vcl is attached.
>>
>>
>> On Thu, Aug 30, 2012 at 6:36 PM, Enno van Amerongen <enno at tty.nl> wrote:
>>
>>> **
>>>
>>> *From:* [Digital^Dude] ® [mailto:millennium.bug at gmail.com]
>>> *Subject:* varnish server-side caching
>>>
>>>
>>> Hi guys,
>>>
>>> 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?
>>>
>>> Please suggest what I can do to make the initial hit on the website as
>>> speedy as the rest of the surfing hits.
>>>
>>>
>>> So, what does your VCL look like? what headers are you setting on the
>>> backend? what about cookies?
>>>
>>> Maybe this will help:
>>> https://www.varnish-cache.org/trac/wiki/VCLExampleCacheCookies
>>>
>>> Enno
>>>
>>>
>>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>



-- 
Per Buer
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <http://www.varnish-software.com/whitepapers> |
Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
Twitter <https://twitter.com/varnishsoftware>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120831/82fc4ec0/attachment.html>


More information about the varnish-misc mailing list