From: serassio <> Date: Thu, 10 Mar 2005 03:43:38 +0000 (+0000) Subject: Bug #1159: reload_with_ims fails to refresh negatively cached objects X-Git-Tag: SQUID_3_0_PRE4~854 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36e6655b4329cc8b5b88d1cd610b2b2b104b05d4;p=thirdparty%2Fsquid.git Bug #1159: reload_with_ims fails to refresh negatively cached objects Forward port of 2.5 patch. --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index ad6773e6c7..2dd3ab4782 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.81 2005/03/06 21:08:13 serassio Exp $ + * $Id: client_side_reply.cc,v 1.82 2005/03/09 20:43:38 serassio Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -661,7 +661,11 @@ clientReplyContext::cacheHit(StoreIOBuffer result) return; } - if (storeCheckNegativeHit(e)) { + if (storeCheckNegativeHit(e) +#if HTTP_VIOLATIONS + && !r->flags.nocache_hack +#endif + ) { http->logType = LOG_TCP_NEGATIVE_HIT; sendMoreData(result); } else if (!Config.onoff.offline && refreshCheckHTTP(e, r) && !http->flags.internal) {