You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2018/04/30 10:51:10 UTC

[sling-whiteboard] 01/03: Added HTTP method to script cache key

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 <ra...@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.