]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
"Nguyen, Hai" <hnguyen@websense.com>:
authorwessels <>
Wed, 4 Oct 2000 23:09:24 +0000 (23:09 +0000)
committerwessels <>
Wed, 4 Oct 2000 23:09:24 +0000 (23:09 +0000)
 - If a redirector returns 301/302 Squid would ignore the new Location
   if the original URL is a cache hit.  So, we need to force all
   301/302 redirects to be cache misses.

src/client_side.cc

index 94b2063cd568c4a68c56b07432da85aeaf99db11..8b77c2623e5a5308048cb0dbe70655c2c0f3a495 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.504 2000/10/04 15:54:45 wessels Exp $
+ * $Id: client_side.cc,v 1.505 2000/10/04 17:09:24 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2001,6 +2001,11 @@ clientProcessRequest2(clientHttpRequest * http)
        http->entry = e;
        return LOG_TCP_HIT;
     }
+    if (http->redirect.status) {
+       /* force this to be a miss */
+       http->entry = NULL;
+       return LOG_TCP_MISS;
+    }
     if (!storeEntryValidToSend(e)) {
        debug(33, 3) ("clientProcessRequest2: !storeEntryValidToSend MISS\n");
        http->entry = NULL;