check response from varnish cache

John Adams jna at twitter.com
Fri Aug 31 17:24:31 CEST 2012


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/20120831/c1539dc0/attachment.html>


More information about the varnish-dev mailing list