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@xxxxxxxxxxxxxx/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