]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
We can now cache Set-Cookie replies. This header is filtered out
authorwessels <>
Fri, 26 Jun 1998 02:08:54 +0000 (02:08 +0000)
committerwessels <>
Fri, 26 Jun 1998 02:08:54 +0000 (02:08 +0000)
for cache hits on the client side.

src/http.cc

index d6d1e2b1a19911f05ef27416a2ab8458683dccd4..6e9617a1096fc60f280082cf9ff3ba7725ce618d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.286 1998/06/09 22:58:02 wessels Exp $
+ * $Id: http.cc,v 1.287 1998/06/25 20:08:54 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -223,14 +223,9 @@ httpCachableReply(HttpStateData * httpState)
        if (!EBIT_TEST(cc_mask, CC_PROXY_REVALIDATE))
            return 0;
     /*
-     * Dealing with cookies is quite a bit more complicated
-     * than this.  Ideally we should strip the cookie
-     * header from the reply but still cache the reply body.
-     * More confusion at draft-ietf-http-state-mgmt-05.txt.
+     * We don't properly deal with Vary features yet, so we can't
+     * cache these
      */
-    /* With new headers the above stripping should be easy to do? @?@ */
-    if (httpHeaderHas(hdr, HDR_SET_COOKIE))
-       return 0;
     if (httpHeaderHas(hdr, HDR_VARY))
        return 0;
     switch (httpState->entry->mem_obj->reply->sline.status) {