1 Index: squid/src/http.c
2 diff -c squid/src/http.c:1.384.2.14 squid/src/http.c:1.384.2.15
3 *** squid/src/http.c:1.384.2.14 Sun Apr 18 17:43:30 2004
4 --- squid/src/http.c Sat Apr 24 08:07:08 2004
7 debug(11, 3) ("httpProcessReplyHeader: HTTP CODE: %d\n", reply->sline.status);
8 if (neighbors_do_private_keys)
9 httpMaybeRemovePublic(entry, reply->sline.status);
10 ! switch (httpCachableReply(httpState)) {
12 ! if (httpHeaderHas(&reply->header, HDR_VARY)
13 #if X_ACCELERATOR_VARY
14 ! || httpHeaderHas(&reply->header, HDR_X_ACCELERATOR_VARY)
17 ! const char *vary = httpMakeVaryMark(httpState->orig_request, reply);
19 ! entry->mem_obj->vary_headers = xstrdup(vary);
20 ! /* Kill the old base object if a change in variance is detected */
21 ! httpMakePublic(entry);
23 ! httpMakePrivate(entry);
26 ! httpMakePublic(entry);
30 httpMakePrivate(entry);
33 ! httpCacheNegatively(entry);
39 if (reply->cache_control) {
40 if (EBIT_TEST(reply->cache_control->mask, CC_PROXY_REVALIDATE))
41 EBIT_SET(entry->flags, ENTRY_REVALIDATE);
43 debug(11, 3) ("httpProcessReplyHeader: HTTP CODE: %d\n", reply->sline.status);
44 if (neighbors_do_private_keys)
45 httpMaybeRemovePublic(entry, reply->sline.status);
46 ! if (httpHeaderHas(&reply->header, HDR_VARY)
47 #if X_ACCELERATOR_VARY
48 ! || httpHeaderHas(&reply->header, HDR_X_ACCELERATOR_VARY)
51 ! const char *vary = httpMakeVaryMark(httpState->orig_request, reply);
53 ! httpMakePrivate(entry);
56 + entry->mem_obj->vary_headers = xstrdup(vary);
58 + switch (httpCachableReply(httpState)) {
60 + httpMakePublic(entry);
63 httpMakePrivate(entry);
66 ! if (Config.negativeTtl > 0)
67 ! httpCacheNegatively(entry);
69 ! httpMakePrivate(entry);
76 if (reply->cache_control) {
77 if (EBIT_TEST(reply->cache_control->mask, CC_PROXY_REVALIDATE))
78 EBIT_SET(entry->flags, ENTRY_REVALIDATE);