[squid-users] cache allow deny precedence WAS: Re: Cache Windows Updates ONLY

From: Nick Hill <nick_at_nickhill.co.uk>
Date: Sun, 13 Apr 2014 17:56:23 +0100

On 13 April 2014 16:11, Nick Hill <nick_at_nickhill.co.uk> 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
Received on Sun Apr 13 2014 - 16:56:37 MDT

This archive was generated by hypermail 2.2.0 : Mon Apr 14 2014 - 12:00:05 MDT