From: wessels <> Date: Tue, 29 Oct 1996 09:39:09 +0000 (+0000) Subject: Set ENTRY_NEGCACHED bit for all neg-cachable reply codes, regardless of X-Git-Tag: SQUID_3_0_PRE1~5570 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=851eeef76df62471362810bd80bcdfee60f7f46d;p=thirdparty%2Fsquid.git Set ENTRY_NEGCACHED bit for all neg-cachable reply codes, regardless of Expires value. --- diff --git a/src/http.cc b/src/http.cc index 23fd79bc5e..88fd16e891 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,5 +1,5 @@ /* - * $Id: http.cc,v 1.89 1996/10/28 07:44:22 wessels Exp $ + * $Id: http.cc,v 1.90 1996/10/29 02:39:09 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -380,10 +380,7 @@ httpProcessReplyHeader(HttpStateData * httpState, char *buf, int size) case 502: /* Bad Gateway */ case 503: /* Service Unavailable */ case 504: /* Gateway Timeout */ - if (*reply->expires) - httpMakePublic(entry); - else - httpCacheNegatively(entry); + httpCacheNegatively(entry); break; /* Some responses can never be cached */ case 303: /* See Other */