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 < [email protected]> 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 > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev >
_______________________________________________ varnish-dev mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
