Permit explicit "http_safe=0" for GET/POST.
authorshort <>
Sun, 18 Sep 2005 18:09:59 +0000 (18:09 +0000)
committershort <>
Sun, 18 Sep 2005 18:09:59 +0000 (18:09 +0000)
Web.pm

diff --git a/Web.pm b/Web.pm
index 6b76695..8422d21 100644 (file)
--- a/Web.pm
+++ b/Web.pm
@@ -245,9 +245,10 @@ my($class,%args)=@_;
        
        if ($W->{"r"}->method() eq "GET" || $W->{"r"}->method() eq "HEAD") {
                for (\$W->{"http_safe"}) {
-                       # Extend the current ETag system instead if you would need it:
-                       cluck "Explicitely NOT HTTP-Safe for method \"".$W->{"r"}->method()."\"?!?"
-                                       if defined($$_) && !$$_;
+                       # Do not: # Extend the current ETag system instead if you would need it:
+                       #         cluck "Explicitely NOT HTTP-Safe for method \"".$W->{"r"}->method()."\"?!?"
+                       #                       if defined($$_) && !$$_;
+                       # as sometimes it just does not make sense to cache it.
                        $$_=1 if !defined $$_;
                        }
                }