Search squid archive

Re: Question about np-query option in cache_peer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux