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. <div><br></div><div>-j</div><div><br><br><div class="gmail_quote">On Fri, Aug 31, 2012 at 6:48 AM, Atanai Wuttisetpaiboon <span dir="ltr"><<a href="mailto:make.it.easy@gmail.com" target="_blank">make.it.easy@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>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?</div>


<div><br></div><div>I have seen some cache devices, they returns HTTP AGE in HTTP header:</div><div>- If Age is 0, it means the content is from web server</div><div>- If Age is not 0 (greater than 0), means the content is from the cache device.</div>


<div><br></div><div>I am not sure if Varnish cache has this ability?</div>
<br>_______________________________________________<br>
varnish-dev mailing list<br>
<a href="mailto:varnish-dev@varnish-cache.org">varnish-dev@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev</a><br></blockquote></div><br></div>