Search squid archive

cache allow deny precedence WAS: Re: Cache Windows Updates ONLY

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

 



On 13 April 2014 16:11, Nick Hill <nick@xxxxxxxxxxxxxx> wrote:
> To paraphrase the logic coded here:
> Don't cache anything with a query string UNLESS it matches the ACL
> wupdatecachablequery.
>
> another way to write this more succinctly might be:
> cache deny QUERY
> cache allow wupdatecachablequery
>
> But I am not certain whether the deny clause will take a higher
> priority than the allow clause in cases where both ACLs match. The
> fandangled logic avoids this.
>

If the 'cache' directive follows the same rules as http_access, then
Squid will stop processing any cache allow/deny directives as soon as
any cache allow/deny directives have a positive match.

So I can replace my logic with:
cache allow wupdatecachablequery
cache deny QUERY




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

  Powered by Linux