From: hno <> Date: Fri, 9 Feb 2007 20:29:05 +0000 (+0000) Subject: Bug #1420: 302 responses with an Expires header is always cached X-Git-Tag: SQUID_3_0_PRE6~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a2bf8f455d01877623ebaa6124dc245f7f3d7da;p=thirdparty%2Fsquid.git Bug #1420: 302 responses with an Expires header is always cached tighten the expiry requirements of 302 responses to only cache fresh 302 responses. --- diff --git a/src/http.cc b/src/http.cc index 591ebf3899..14d9459b53 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.509 2006/10/31 23:30:57 wessels Exp $ + * $Id: http.cc,v 1.510 2007/02/09 13:29:05 hno Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -493,7 +493,7 @@ HttpStateData::cacheableReply() /* Responses that only are cacheable if the server says so */ case HTTP_MOVED_TEMPORARILY: - if (rep->expires > -1) + if (rep->expires > rep->date && rep->date > 0) return 1; else return 0;