Re: [squid-users] Squid purge for zip files

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 25 Jul 2008 00:31:03 +1200

Aravind J wrote:
> Hi ,
> I have an Web application which can be used for downloading tools and patches . This application gets tools and patch files in "zip" format and gives to users. I am using squid server to cache the zip files , so that next time user looks for same zip file, it can be downloaded from squid cache. Now I am facing a problem like , I want to remove individual zip file from squid cache. I tried to achieve this by using -m PURGE option in squidclient. I have added permissions in squid conf . But I am always getting a 404 Not Found , but right after executing this command , if I try to download the same file , I am getting a TCP_HIT also , that means file is till in cache. Could some body tell me what's wrong on my side.
>
> I tried different options like giving absolute URL of that file
> ./squidclient -m PURGE ftp://test123@my.ftpsite.com/tools/patches/myfile.zip
>

Only EXACT same URL the user used to request it will PURGE. There may be
others things like Vary: header needed also, but with FTP mid-squid
translation of the protocol its anybodies guess.

>
> and /squidclient -m PURGE *zip etc....
>
> But I am always getting 404 , like below
>
> HTTP/1.0 404 Not Found
> Server: squid/2.5.STABLE7
> Mime-Version: 1.0
> Date: Wed, 23 Jul 2008 21:55:58 GMT
> Content-Length: 0
>
> Could you please help me to fix this issue .

check my footer...

Amos

-- 
Please use Squid 2.7.STABLE3 or 3.0.STABLE8
Received on Thu Jul 24 2008 - 12:31:01 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 24 2008 - 12:00:04 MDT