]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4648: Squid ignores object revalidation for HTTPS scheme
authorGarri Djavadyan <garryd@comnet.uz>
Tue, 1 Aug 2017 00:03:18 +0000 (18:03 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 1 Aug 2017 15:32:05 +0000 (09:32 -0600)
Squid skips object revalidation for HTTPS scheme and, hence, does not
honor a reload_into_ims option (among other settings).

TODO: Add an httpLike() method or function to detect all HTTP-like
schemes instead of comparing with AnyP::PROTO_HTTP directly. There are
20+ candidates for similar bugs: git grep '[!=]= AnyP::PROTO_HTTP'.

src/client_side_reply.cc

index 875118d22095a42d8e673e7caa8c3a99bfe46b83..5abfe917abe49434314c243f983289211a190029 100644 (file)
@@ -670,7 +670,7 @@ clientReplyContext::cacheHit(StoreIOBuffer result)
              */
             http->logType = LOG_TCP_CLIENT_REFRESH_MISS;
             processMiss();
-        } else if (r->url.getScheme() == AnyP::PROTO_HTTP) {
+        } else if (r->url.getScheme() == AnyP::PROTO_HTTP || r->url.getScheme() == AnyP::PROTO_HTTPS) {
             debugs(88, 3, "validate HIT object? YES.");
             /*
              * Object needs to be revalidated