Re: Save 15% on your bandwidth...

From: Craig Sanders <cas@dont-contact.us>
Date: Fri, 20 Sep 1996 12:10:58 +1000 (EST)

On Sun, 15 Sep 1996, Gudmundur Ragnar wrote:

> > > > Why not just add a special rule in squid so that netscape
> > > > distributions get cached *much* longer? ;-)
> > >
> > > The point is that there are many mirrors around the world and our
> > > users tend to visit them all.
> >
> > Is there anyway that I could redirect all requests to
> > ftpx.netscape.com/blabla/n32.exe to the same ftp site e.g.,
> > ftp5.netscape.com and then write a ttl_pattern rule so that this
> > site only stays longer.
>
> We have a real "problem/opertunity" and should try to find a solution
> that is both simple and complete.

some sort of regexp url rewriting would be useful:

e.g. if you wanted to redirect any request for netscape 2.02 or 3.0
(both 16 & 32 bit versions) from any site to ftp://ftp.netscape.com:

s=(ftp://..*\)\(n[13][62]e2.*\.exe\)=ftp://ftp.netscape.com/path/to/\2/
s=(ftp://..*\)\(n[13][62]e3.*\.exe\)=ftp://ftp.netscape.com/path/to/\2/

or

s=ftp://..*/n16e202\.exe=ftp://ftp.netscape.com/path/to/n16e202.exe
s=ftp://..*/n32e202\.exe=ftp://ftp.netscape.com/path/to/n32e202.exe
s=ftp://..*/n16e30\.exe=ftp://ftp.netscape.com/path/to/n16e30.exe
s=ftp://..*/n16e30p\.exe=ftp://ftp.netscape.com/path/to/n16e30p.exe
s=ftp://..*/n32e30\.exe=ftp://ftp.netscape.com/path/to/n32e30.exe
s=ftp://..*/n32e30p\.exe=ftp://ftp.netscape.com/path/to/n32e30p.exe

(and similar for http://..*/n16e202.exe etc.)

actually it would be better to use your nearest mirror site instead of
ftp.netscape.com

another regexp which should catch all versions for all platforms might
be something like:

s=\(ftp://..*/netscape/navigator/\)\(..*\)=ftp://ftp.netscape.com/pub/netscape/navigator/\2

fortunately, there's probably only a dozen or two programs where this
sort of redirection would be useful (e.g. netscape, msie, and other
large & very popular packages which have lots of mirror sites), so
maintainence of these redirection lists wouldn't be a huge hassle.

Craig
Received on Thu Sep 19 1996 - 19:04:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:03 MST