Article delegate-en <_A1678@delegate-en.ML_>
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[delegate-en/1678] [Reference:<_A1672@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: refresh file on a cache
09 Jun 2002 08:30:41 GMT michel <pradabdyi.ml@ml.delegate.org>


Yutaka Sato wrote:
> On 06/07/02(14:32) you "michel.guilhem" <pradabdyi.ml@ml.delegate.org> wrote
> in <_A1672@delegate-en.ML_>
>  |How to be sure that a file on the delegate cache is fresh like the same
>  |file on a server ?
> 
> EXPIRE=0
> 
> will do.  With this, on each request from client, DeleGate always
> (0 seconds after the data is cached) asks the server if the cached
> data is fresh or no (using If-Modified-Since header).

I'm a newbie , my question is basic but i'm blocked by this .
Please help me , i have to defend Delegate's solution in my organisation 
and the first step is to responds to this demand (with a ftp - or http - 
cache tree structure , how to be sure that the files modifications are 
propagating immediately and only this , the others files , not modified 
  , reached on the proxy ) .


I use a delegate 7.9.5 and with this option , the proxy delegate used in 
verbose mode
give with this command (launched on a lan machine ):
/delegate7.9.5/src/delegated -v -P21 SERVER="ftp://www.annuwave
.net/" EXPIRE=0 ADMIN="pradabdyi.ml@ml.delegate.org"

  06/09 10:18:28.91 [3740] 1+0/21: PASV [10,75,1,32,6,18] >> 227 
Entering Passive Mode (10,75,1,32,6,18) DeleGate[B].^M
06/09 10:18:28.91 [3740] 1+0/22: [0.00,526][FTP/HTTP cache-EXPIRED: 544 
 > 0] /home/delegate/cache/ftp/www.annuwave.net/pub/.-_-./LIST:-l:
06/09 10:18:28.91 [3740] 1+0/22: FTP-CACHE: LIST [] = 
[/home/delegate/cache/ftp/www.annuwave.net/pub/.-_-./LIST:-l:][]:0
06/09 10:18:29.15 [3740] 1+0/22: CACHE: created 
/home/delegate/cache/ftp/www.annuwave.net/pub/.-_-./LIST:-l:#CREATING
06/09 10:18:29.15 [3740] 1+0/22: FTP-CACHE: LIST [] = 
[/home/delegate/cache/ftp/www.annuwave.net/pub/.-_-./LIST:-l:][/home/delegate/cache/ftp/www.annuwave.net/pub/.-_-./LIST:-l:#CREATING]:81816a8
06/09 10:18:29.23 [3740] 1+0/22: FTP data-relay([12]10000b -> 
[14]10000b) 531b / 1/ 0.08s (read-EOF)
06/09 10:18:29.29 [3740] 1+0/22: CACHE: got = [531] 
/home/delegate/cache/ftp/www.annuwave.net/pub/.-_-./LIST:-l:
06/09 10:18:29.29 [3740] 1+0/22: FTP-CACHE: written=1 531 bytes 
[/home/delegate/cache/ftp/www.annuwave.net/pub/.-_-./LIST:-l:]


This seems indicate that when i have EXPIRE=0 on my command , the 
delegate go automatically on the server even if the file is not modified 
  ( because the parameter controlled is the validity of the cache , with 0
i can't use the cache because it is considered always like expired ).

My purpose is the following

I have a server ftp on internet , reachable by RTC .
My delegate is running on an intranet , who share the rtc line .
I'm interested to have a proxy for ftp ( ftp command line ) .
Because of course the lan is faster than rtc .
But if a file is modified on the server , what is the command to 
propagate this modification on the proxy ( and only this modification )

Thanks you very much for any clue , my first questions wasn't very clear .
Guilhem michel DGCP





  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V