]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: Fix out-of-sync If-None-Match copying explanation (#2200)
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Thu, 4 Sep 2025 20:25:19 +0000 (20:25 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 5 Sep 2025 05:49:37 +0000 (05:49 +0000)
If `cache_miss_revalidate` is enabled, we append the header.

src/http.cc

index f7e7f2735b3301803cee7cc795ff4e7debdb714f..a43b2b504f4b14331402e93b36c2cf69c558a687 100644 (file)
@@ -2250,7 +2250,7 @@ copyOneHeaderFromClientsideRequestToUpstreamRequest(const HttpHeaderEntry *e, co
     case Http::HdrType::IF_NONE_MATCH:
         /** \par If-None-Match:
          * append if the wildcard '*' special case value is present, or
-         *   cache_miss_revalidate is disabled, or
+         *   cache_miss_revalidate is enabled, or
          *   the request is not cacheable in this proxy, or
          *   the request contains authentication credentials.
          * \note this header lists a set of responses for the server to elide sending. Squid added values are extending that set.