This is an automated email from the ASF dual-hosted git repository.

radu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit 6ca19f624718a5f8910f04a2dbc505f953f64557
Author: Radu Cotescu <[email protected]>
AuthorDate: Mon Apr 30 12:49:20 2018 +0200

    Added HTTP method to script cache key
---
 .../apache/sling/scripting/resolver/internal/BundledScriptServlet.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/scripting-resolver/org-apache-sling-scripting-resolver/src/main/java/org/apache/sling/scripting/resolver/internal/BundledScriptServlet.java
 
b/scripting-resolver/org-apache-sling-scripting-resolver/src/main/java/org/apache/sling/scripting/resolver/internal/BundledScriptServlet.java
index 163464c..f331587 100644
--- 
a/scripting-resolver/org-apache-sling-scripting-resolver/src/main/java/org/apache/sling/scripting/resolver/internal/BundledScriptServlet.java
+++ 
b/scripting-resolver/org-apache-sling-scripting-resolver/src/main/java/org/apache/sling/scripting/resolver/internal/BundledScriptServlet.java
@@ -131,7 +131,8 @@ class BundledScriptServlet extends GenericServlet {
         RequestPathInfo requestPathInfo = request.getRequestPathInfo();
         String selectorString = requestPathInfo.getSelectorString();
         String requestExtension = requestPathInfo.getExtension();
-        return request.getResource().getResourceType() + 
(StringUtils.isNotEmpty(selectorString) ? ":" + selectorString : "") +
+        return request.getMethod() + ":" + 
request.getResource().getResourceType() +
+                (StringUtils.isNotEmpty(selectorString) ? ":" + selectorString 
: "") +
                 (StringUtils.isNotEmpty(requestExtension) ? ":" + 
requestExtension : "");
     }
 }

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to