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

From: Henrik Nordstrom <[email protected]>
Date: Tue, 02 Oct 2007 10:54:04 +0200

On mån, 2007-10-01 at 04:32 -0700, 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.

This is done using the "Cache-Control: only-if-cached" header.

Example:

wget ... --header="Cache-Control: only-if-cached" url...

Regards
Henrik

Received on Tue Oct 02 2007 - 02:54:09 MDT

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