On 13 April 2014 16:11, Nick Hill <[email protected]> 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

Reply via email to