Hi Amos,
Thanks a lot for your help . I used "ftp://[EMAIL 
PROTECTED]/tools/patches/myfile.zip" URL because in squid log , I am seeing 
this 
1216310397.416   9508 127.0.0.1 TCP_HIT/200 6500407 GET ftp://[EMAIL 
PROTECTED]/tools/patches/myfile.zip  - NONE/- application/zip . 

that's the reason why I used the above url in PURGE . From web application. 
it's a POST request which is translated by web application to ftp request. 

I am sorry that I didn't understand what you are referring by "others things 
like Vary: header needed also, but with FTP  mid-squid  translation of the 
protocol its anybodies guess" , could you please explain this .

Thanks & Regards
Aravind




--- On Thu, 24/7/08, Amos Jeffries <[EMAIL PROTECTED]> wrote:

> From: Amos Jeffries <[EMAIL PROTECTED]>
> Subject: Re: [squid-users] Squid purge for zip files
> To: [EMAIL PROTECTED]
> Cc: squid-users@squid-cache.org
> Date: Thursday, 24 July, 2008, 6:01 PM
> 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://[EMAIL PROTECTED]/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


      Bring your gang together. Do your thing. Find your favourite Yahoo! group 
at http://in.promos.yahoo.com/groups/

Reply via email to