Re: [squid-users] I Want To Ping A Cache Object

From: Adrian Chadd <adrian@dont-contact.us>
Date: Mon, 1 Oct 2007 23:43:00 +0800

On Mon, Oct 01, 2007, Andreas Pettersson wrote:
> Adrian Chadd wrote:
> >On Mon, Oct 01, 2007, Solomon Asare wrote:
> >
> >>Hi All,
> >>please, how do I tell I have an object in my cache
> >>without fetching the object. I want a command like:
> >>"wget --spider", but where I access only the cache
> >>without going to the origin server if the object is
> >>not available in the cache.
> >>
> >
> >Hm; if squid can't do it then I can see how to do it pretty easily.
> >(Ie, check for the existance of a custom header which tells squid not
> >to forward the request.)
> >
>
> # wget --header=""Cache-Control: only-if-cached" "http://www.freebsd.org/"

Cool. :)

Adrian
Received on Mon Oct 01 2007 - 09:37:14 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:00 MDT