Re: "no_cache" but it's still fetching from parent !

From: Andrew S. Howell <andy@dont-contact.us>
Date: Wed, 06 Jan 1999 18:17:17 +0900

>>>>> "Joerg" == Joerg Klaas <joergklaas@netside.de> writes:

    Joerg> So I put the following statements into squid.conf: acl
    Joerg> NOLOCALS dst 192.168.100.0/24 no_cache deny NOLOCALS I also
    Joerg> have one parent for this server configured as follows:
    Joerg> cache_peer proxy.domain.de parent 8080 3130 no-query
    Joerg> default

    Joerg> BUT, what happens is:

    Joerg> 1. My proxy asks his parent to get external pages. -----
    Joerg> that's fine 2. my proxy doesn't cache local www-pages -----
    Joerg> that's fine too 3. my proxy DOES ask the parent for pages
    Joerg> on my local subnet !!! ----- that's bad !!!! (he should
    Joerg> fetch the pages directly, instead of first asking another
    Joerg> proxy)

I'm rather new to squid, but this is what I did:

My parent is non-squid. In squid.conf I have:

cache_peer tickle parent 8080 7 no-query no-digest no-netdb-exchange

Then I use an automatic proxy setting in netscape, pointing it to:

        http://ika/proxy.pac

proxy.pac contains:

function FindProxyForURL(url, host)
        {
            if (isInNet(host, "160.101.120.0", "255.255.255.0") ||
                isInNet(host, "160.101.121.0", "255.255.255.0") ||
                isInNet(host, "160.101.122.0", "255.255.255.0") ||
                isInNet(host, "160.101.123.0", "255.255.255.0") ||
                isInNet(host, "160.101.124.0", "255.255.255.0") ||
                isInNet(host, "160.101.170.0", "255.255.255.0"))
                return "DIRECT";

            return "PROXY ika:8080";
        }

Netscape uses this to do the actual checking if its local or not, so
squid only ever sees non-local requests. There probably is a way to do
what you wanted to directly through squid, but this works for me...

There are links to docs that explain the autoproxy config on the squid
home page.

Hope this helps,

        Andy
Received on Wed Jan 06 1999 - 02:14:50 MST

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