Best way to cache mirror sites

From: Oleg Makarenko <oleg@dont-contact.us>
Date: Tue, 13 Apr 1999 10:26:03 +0400

Hi all,

two questions:

1. Is it possible to declare some sites as mirrors in squid.conf to
make squid to consider them all as one site for cache-hits and as
different sites for cache misses?

So that if say, siteA.domain is a mirror for siteB.domain and squid gets

http://siteA.domain/object it searches not only for that object in cache

but also for http://siteB.domain/object. If it finds the object (hit) it

returns it but if it misses it goes to the original siteA.domain
according to the original request. As far as I understand it with
redirection rules
I can force squid to always fetch objects from only one of the sites.

2. Is it possible to base refresh rules on Content-Type and
Content-Length not only on url+Last Modified and other time related
headers? I want to make "large" objects more
aggressively cacheable then small ones.

Oleg
Received on Tue Apr 13 1999 - 02:15:58 MDT

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