Re: [squid-users] Re: purge using squidclient

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 23 Sep 2005 01:04:06 +0200 (CEST)

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
Received on Thu Sep 22 2005 - 17:04:08 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Oct 01 2005 - 12:00:04 MDT