// Automatic cache config file for London office // // 19990728 - scot@boo.com - Initial version // 20000309 - scot@boo.com - Updated to include new network range // function FindProxyForURL(url, host) { // If it's an internal host, go straight there // The only purpose of the isPlainHostName and dnsDomainIs // clauses are to minimize DNS lookups (isInNet) // if( isPlainHostName(host) || dnsDomainIs(host, ".uk.boo.com") || isInNet(host, "195.153.206.0", "255.255.255.0" ) || isInNet(host, "193.115.184.0", "255.255.252.0" ) ) return "DIRECT"; // Otherwise, return cache3 then cache4 for .COMs, or // cache4 then cache3 for other domains (crude load balancing) if( dnsDomainIs(host, ".com") ) return "PROXY cache3.uk.boo.com:3128; PROXY cache4.uk.boo.com:3128"; return "PROXY cache4.uk.boo.com:3128; PROXY cache3.uk.boo.com:3128"; }