From: rousskov <> Date: Wed, 22 Apr 1998 03:28:13 +0000 (+0000) Subject: - changed semantics of "no_cache" config tag from "allow" to "deny" X-Git-Tag: SQUID_3_0_PRE1~3474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=952914196230df7207e4a52a7255b9806491a91c;p=thirdparty%2Fsquid.git - changed semantics of "no_cache" config tag from "allow" to "deny" and synced the corresponding if statement in clientCachable() --- diff --git a/src/client_side.cc b/src/client_side.cc index c26a130774..d751bc5654 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.280 1998/04/20 18:32:46 wessels Exp $ + * $Id: client_side.cc,v 1.281 1998/04/21 21:28:13 rousskov Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -847,7 +847,8 @@ clientCachable(clientHttpRequest * http) */ ch.src_addr = http->conn->peer.sin_addr; ch.request = http->request; - if (aclCheckFast(Config.accessList.noCache, &ch)) + /* aclCheckFast returns 0 if there is a match with "no_cache deny" acl */ + if (!aclCheckFast(Config.accessList.noCache, &ch)) return 0; if (Config.cache_stop_relist) if (aclMatchRegex(Config.cache_stop_relist, url))