Re: [squid-users] Question about np-query option in cache_peer

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 21 May 2009 15:38:24 +1200 (NZST)

> Hi,
>
> Now I have an inner squid namely squid-1 and outer squid namely squid-2.
>
> squid-1 has a squid-2 as parent:
>
> cache_peer squid-2.domain parent 8080 0 no-query default
> never_direct allow all
>
>
> Please tell me if I understand what that means:
>
> a) Client behind (only) squid-2 ask for object "A", because is not on
> his own cache, ask to the internet, retrieves the object and save it
> on his own cache.
> b) When client behind squid-1 ask for an object "A" squid-1 looks
> fisrtly at his own cache and if it's hasn't it, redirects the petition
> to squid-2.
> c) Then squid directly ask for object "A" on internet, but doesn't
> look at his own cache, because of no-query option in squid.conf os
> squid-1.
> d) squid-2 retrieves object "A" and save it on his own cache.
>
> If the above is right, squid-2 would be working twice, wouldn't it? In
> that case, no-query would not be so useful.
>
> Please fix me if I'm wrong
>

Fixing... ;)

no-query means ICP protocol is not used by squid-1 to see if squid-2 knows
about object X. squid-1 will simply pass the HTTP request whole to squid-2
and hope it can handle it.

squid-2 will still check its own cache before going out to the network.

Amos
Received on Thu May 21 2009 - 03:38:32 MDT

This archive was generated by hypermail 2.2.0 : Thu May 21 2009 - 12:00:01 MDT