From: wessels <> Date: Sat, 18 Jul 1998 13:29:56 +0000 (+0000) Subject: treat Cache-Control: revalidate just like proxy-revalidate X-Git-Tag: SQUID_3_0_PRE1~3052 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0336304cdc693b1d9ab3a4425555eae26c880734;p=thirdparty%2Fsquid.git treat Cache-Control: revalidate just like proxy-revalidate --- diff --git a/src/http.cc b/src/http.cc index 46d949ec2e..3e21b3d0c4 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.292 1998/07/18 07:28:03 wessels Exp $ + * $Id: http.cc,v 1.293 1998/07/18 07:29:56 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -352,8 +352,12 @@ httpProcessReplyHeader(HttpStateData * httpState, const char *buf, int size) assert(0); break; } - if (reply->cache_control && EBIT_TEST(reply->cache_control->mask, CC_PROXY_REVALIDATE)) - EBIT_SET(entry->flag, ENTRY_REVALIDATE); + if (reply->cache_control) { + if (EBIT_TEST(reply->cache_control->mask, CC_PROXY_REVALIDATE)) + EBIT_SET(entry->flag, ENTRY_REVALIDATE); + else if (EBIT_TEST(reply->cache_control->mask, CC_REVALIDATE)) + EBIT_SET(entry->flag, ENTRY_REVALIDATE); + } if (EBIT_TEST(httpState->flags, HTTP_KEEPALIVE)) if (httpState->peer) httpState->peer->stats.n_keepalives_sent++;