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