]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Mention actual RFC text here.
authorBenno Rice <benno@squid-cache.org>
Fri, 29 Aug 2008 00:56:35 +0000 (10:56 +1000)
committerBenno Rice <benno@squid-cache.org>
Fri, 29 Aug 2008 00:56:35 +0000 (10:56 +1000)
src/HttpRequestMethod.cc

index 5ac93230451df794cfacee029f7a1b3041afc3cb..710b44273fafa43804c6a575f2caa5327c2ec48a 100644 (file)
@@ -243,11 +243,16 @@ HttpRequestMethod::purgesOthers() const
         case METHOD_PURGE:
             return true;
 
-        /* all others */
+        /*
+         * RFC 2616 sayeth, in section 13.10, final paragraph:
+         * A cache that passes through requests for methods it does not
+         * understand SHOULD invalidate any entities referred to by the
+         * Request-URI.
+         */
         case METHOD_OTHER:
         default:
-            return true; // RFC says to purge if we don't know the method
+            return true;
        }
 
-    return false; // not reached
+    return true; // not reached, but just in case
 }