From: wessels <> Date: Fri, 26 Jun 1998 02:08:54 +0000 (+0000) Subject: We can now cache Set-Cookie replies. This header is filtered out X-Git-Tag: SQUID_3_0_PRE1~3139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02fe0fbccb063cb62e626c0d3ec08e82e5672ac8;p=thirdparty%2Fsquid.git We can now cache Set-Cookie replies. This header is filtered out for cache hits on the client side. --- diff --git a/src/http.cc b/src/http.cc index d6d1e2b1a1..6e9617a109 100644 --- a/src/http.cc +++ b/src/http.cc @@ -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) {