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

From: Andreas Pettersson <[email protected]>
Date: Mon, 01 Oct 2007 17:31:58 +0200

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/"

-- 
Andreas
Received on Mon Oct 01 2007 - 09:30:51 MDT

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