]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ENTRY_SPECIAL objects must always be cache hits
authorwessels <>
Fri, 24 Jul 1998 05:50:51 +0000 (05:50 +0000)
committerwessels <>
Fri, 24 Jul 1998 05:50:51 +0000 (05:50 +0000)
src/client_side.cc

index d4c485a1c8c591a739dc42b0df93bb5048ee0f0c..31aed88c41a1730d55e23c5107b1d2a9a834868d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.364 1998/07/22 20:37:09 wessels Exp $
+ * $Id: client_side.cc,v 1.365 1998/07/23 23:50:51 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1606,6 +1606,10 @@ clientProcessRequest2(clientHttpRequest * http)
        storeRelease(e);
        http->entry = NULL;
        return LOG_TCP_MISS;
+    } else if (EBIT_TEST(e->flag, ENTRY_SPECIAL)) {
+       /* Special entries are always hits, no matter what the client says */
+       http->entry = e;
+       return LOG_TCP_HIT;
     } else if (EBIT_TEST(r->flags, REQ_NOCACHE)) {
        /* NOCACHE should always eject a negative cached object */
        if (EBIT_TEST(e->flag, ENTRY_NEGCACHED))