From: hno <> Date: Sat, 15 Jun 2002 01:26:43 +0000 (+0000) Subject: Bugzilla #351: ignore-reload should override max-age=0 X-Git-Tag: SQUID_3_0_PRE1~980 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=085008f97f8ed77d3b1085f32c48e86f3e457460;p=thirdparty%2Fsquid.git Bugzilla #351: ignore-reload should override max-age=0 --- diff --git a/src/refresh.cc b/src/refresh.cc index 03dc125044..b743feaf9f 100644 --- a/src/refresh.cc +++ b/src/refresh.cc @@ -1,6 +1,6 @@ /* - * $Id: refresh.cc,v 1.56 2001/07/12 19:40:32 wessels Exp $ + * $Id: refresh.cc,v 1.57 2002/06/14 19:26:43 hno Exp $ * * DEBUG: section 22 Refresh Calculation * AUTHOR: Harvest Derived @@ -265,6 +265,10 @@ refreshCheck(const StoreEntry * entry, request_t * request, time_t delta) #endif if (NULL != cc) { if (cc->max_age > -1) { +#if HTTP_VIOLATIONS + if (R->flags.ignore_reload && cc->max_age == 0) { + } else +#endif if (age > cc->max_age) { debug(22, 3) ("refreshCheck: YES: age > client-max-age\n"); return STALE_EXCEEDS_REQUEST_MAX_AGE_VALUE;