varnishhist stats

Sam Crawford samcrawford at gmail.com
Tue Jun 22 20:12:38 CEST 2010


By default Varnish will not cache requests with cookies set, or with
authentication provided. Looking at your VCL config, it looks like
you've already accounted for this.

What makes you think that authentication sessions (i.e. cookies) are
being cached?

Thanks,

Sam


On 22 June 2010 11:18, Sheldon Dsouza <sheldond at gmail.com> wrote:
> Hi Florian,
>
> Thanks for the reply, its works now. I have across another problem, our
> backend portal requires a login and password and tracks users sessions.
>
> How do you prevent these authenticated sessions from getting cached?
>
> Regards,
> Sheldon
>
> On Tue, Jun 22, 2010 at 3:37 PM, Florian Holzhauer
> <fh-varnish at fholzhauer.de> wrote:
>>
>> Am 22.06.10 11:21, schrieb Sheldon Dsouza:
>>>
>>> I have installed Varnish on my production server, the configuration is
>>> attached. I tried to get a few stats using the varnishhist command,
>>> according to the stats a pipe "|" indicates cache hits
>>>
>>> I dont see any pipes in my display, i have attached the out of the stats
>>> in the varnish.txt file. What am i doing wrong?
>>
>> On a first brief look:
>> If I do not recall it completely wrong, the error is the return(pass) as
>> the default in vcl_fetch.
>>
>> "In this mode, the request is passed on to the backend, and the backend's
>> response is passed on to the client, but is not entered into the cache.
>> Subsequent requests submitted over the same client connection are handled
>> normally." - so basically, you are bypassing the cache.
>>
>> The correct should be return (deliver);
>>
>> Cheers,
>> Florian.
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
>




More information about the varnish-misc mailing list