sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [sling-whiteboard] 01/03: Added HTTP method to script cache key
Date Mon, 30 Apr 2018 10:51:10 GMT
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 <radu@apache.org>
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
radu@apache.org.

Mime
View raw message