]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
treat Cache-Control: revalidate just like proxy-revalidate
authorwessels <>
Sat, 18 Jul 1998 13:29:56 +0000 (13:29 +0000)
committerwessels <>
Sat, 18 Jul 1998 13:29:56 +0000 (13:29 +0000)
src/http.cc

index 46d949ec2e005abe85335db3b83cac0c80138f2f..3e21b3d0c48699f313f54ea48f1381a4b681d269 100644 (file)
@@ -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++;