]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- changed semantics of "no_cache" config tag from "allow" to "deny"
authorrousskov <>
Wed, 22 Apr 1998 03:28:13 +0000 (03:28 +0000)
committerrousskov <>
Wed, 22 Apr 1998 03:28:13 +0000 (03:28 +0000)
  and synced the corresponding if statement in clientCachable()

src/client_side.cc

index c26a130774317d9cbd675ac53d3dd5b69b7dac62..d751bc5654f6d59104136475946b51b5bf6dc997 100644 (file)
@@ -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))