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

From: Andrew S. Howell <>
Date: Wed, 06 Jan 1999 18:17:17 +0900

>>>>> "Joerg" == Joerg Klaas <> writes:

    Joerg> So I put the following statements into squid.conf: acl
    Joerg> NOLOCALS dst no_cache deny NOLOCALS I also
    Joerg> have one parent for this server configured as follows:
    Joerg> cache_peer 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:


proxy.pac contains:

function FindProxyForURL(url, host)
            if (isInNet(host, "", "") ||
                isInNet(host, "", "") ||
                isInNet(host, "", "") ||
                isInNet(host, "", "") ||
                isInNet(host, "", "") ||
                isInNet(host, "", ""))
                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,

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