]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
clear no-cache bit for cache hits on STORE_PENDING entries
authorwessels <>
Mon, 19 Oct 1998 10:40:30 +0000 (10:40 +0000)
committerwessels <>
Mon, 19 Oct 1998 10:40:30 +0000 (10:40 +0000)
src/client_side.cc

index 3bde962d64357b33c90aad202c8cd1d9b25c584b..605e51c430c5044ea6e112362445b74d5191f832 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.417 1998/10/18 08:10:05 wessels Exp $
+ * $Id: client_side.cc,v 1.418 1998/10/19 04:40:30 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1656,7 +1656,7 @@ clientProcessOnlyIfCachedMiss(clientHttpRequest * http)
 static log_type
 clientProcessRequest2(clientHttpRequest * http)
 {
-    const request_t *r = http->request;
+    request_t *r = http->request;
     StoreEntry *e;
     e = http->entry = storeGetPublic(http->uri, r->method);
     if (r->method == METHOD_HEAD && e == NULL) {
@@ -1694,6 +1694,11 @@ clientProcessRequest2(clientHttpRequest * http)
        ipcacheReleaseInvalid(r->host);
        /* continue! */
     }
+    if (r->flags.nocache && e->store_status == STORE_PENDING) {
+       debug(33, 3) ("Clearing no-cache for STORE_PENDING request\n\t%s\n",
+           storeUrl(e));
+       r->flags.nocache = 0;
+    }
 #endif
     if (r->flags.nocache) {
        debug(33, 3) ("clientProcessRequest2: no-cache REFRESH MISS\n");