From 6a2bf8f455d01877623ebaa6124dc245f7f3d7da Mon Sep 17 00:00:00 2001 From: hno <> Date: Fri, 9 Feb 2007 20:29:05 +0000 Subject: [PATCH] Bug #1420: 302 responses with an Expires header is always cached tighten the expiry requirements of 302 responses to only cache fresh 302 responses. --- src/http.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3