Hi Amos,
Thanks a lot for your help . I used "ftp://test123@my.ftpsite.com/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://test123@my.ftpsite.com/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 <squid3_at_treenet.co.nz> wrote:
> From: Amos Jeffries <squid3_at_treenet.co.nz>
> Subject: Re: [squid-users] Squid purge for zip files
> To: aravindjp_at_yahoo.com
> Cc: squid-users_at_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://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
Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/
Received on Thu Jul 24 2008 - 13:52:28 MDT
This archive was generated by hypermail 2.2.0 : Thu Jul 24 2008 - 12:00:04 MDT