On Wed, 21 Sep 2005, Joe Acquisto wrote:
Thanks, found it. Problem is, I get a miss, no matter what.
For instance:
"Zaphod:/var/cache/squid # client -m PURGE http://www.squid-cache.org/
HTTP/1.0 200 OK
Server: Squid/2.4.STABLE7
Mime-Version: 1.0
Date: Wed, 21 Sep 2005 16:33:51 GMT
Content-Length: 0
X-Cache: MISS from Zaphod.no.domain.com
Proxy-Connection: close"
This purged the object. If it's not in the cache then 404 is returned.
Also I would recommend upgrading your Squid. 2.4.STABLE7 is quite old with
several security issues...
It's always an "X-Cache: MISS" as PURGE requests as such is not cached.
Or, more verbose-ly:
"Zaphod:/var/cache/squid # client -mv PURGE http://www.squid-cache.org/
Syntax error there..
and is why Squid responded with this:
HTTP/1.0 400 Bad Request
What you meant to use was:
client -v -m PURGE http://www.squid-cache.org/
Regards
Henrik