check response from varnish cache

F make.it.easy at gmail.com
Fri Aug 31 19:56:50 CEST 2012


Can anyone confirm and show me the response in both cases?

I have not yet using Varnish so I cannot try. 

F

On 31 Aug 2555 BE, at 22:24, John Adams <jna at twitter.com> wrote:

> Just look at the X-Cache header. I believe this is in the default VCL, and it will return HIT or MISS depending if you hit the cache or not. 
> 
> -j
> 
> 
> On Fri, Aug 31, 2012 at 6:48 AM, Atanai Wuttisetpaiboon <make.it.easy at gmail.com> wrote:
> Hi,
> 
> I am now start learning and thinking to use Varnish cache. I would like to know how can we know from the response whether the content is retrieved from the Varnish cache or from the web server?
> 
> I have seen some cache devices, they returns HTTP AGE in HTTP header:
> - If Age is 0, it means the content is from web server
> - If Age is not 0 (greater than 0), means the content is from the cache device.
> 
> I am not sure if Varnish cache has this ability?
> 
> _______________________________________________
> varnish-dev mailing list
> varnish-dev at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20120901/51c0c90e/attachment.html>


More information about the varnish-dev mailing list