From: wessels <> Date: Wed, 4 Oct 2000 23:09:24 +0000 (+0000) Subject: "Nguyen, Hai" : X-Git-Tag: SQUID_3_0_PRE1~1835 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=40fd4e8d05739d58ccf4a041b50e76eda4f339cd;p=thirdparty%2Fsquid.git "Nguyen, Hai" : - 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. --- diff --git a/src/client_side.cc b/src/client_side.cc index 94b2063cd5..8b77c2623e 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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;