]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug fix: a test was flipped during conversion.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 4 Oct 2011 10:34:19 +0000 (12:34 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 4 Oct 2011 10:34:19 +0000 (12:34 +0200)
src/http.cc

index a0c0592228b347c8499094e8233c8c32e2f2d891..d55a969b58dfea4eff61848f4e17c6e5ebc522bd 100644 (file)
@@ -1771,7 +1771,7 @@ HttpStateData::httpBuildRequestHeader(HttpRequest * request,
 #endif
 
         /* Add max-age only without no-cache */
-        if (cc->hasMaxAge() && !cc->noCache()) {
+        if (!cc->hasMaxAge() && !cc->noCache()) {
             const char *url =
                 entry ? entry->url() : urlCanonical(request);
             cc->maxAge(getMaxAge(url));