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

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


The following commit(s) were added to refs/heads/master by this push:
     new c76605f  SLING-8427: add Forward filter scope to CacheControlFilter.
c76605f is described below

commit c76605feed2ea87f106611bc8c4ccee62a1d42e3
Author: Eric Van Geem <[email protected]>
AuthorDate: Mon May 20 11:40:58 2019 -0500

    SLING-8427: add Forward filter scope to CacheControlFilter.
---
 src/main/java/org/apache/sling/dynamicinclude/CacheControlFilter.java   | 2 +-
 .../java/org/apache/sling/dynamicinclude/SyntheticResourceFilter.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/dynamicinclude/CacheControlFilter.java 
b/src/main/java/org/apache/sling/dynamicinclude/CacheControlFilter.java
index 984d0c8..c515815 100644
--- a/src/main/java/org/apache/sling/dynamicinclude/CacheControlFilter.java
+++ b/src/main/java/org/apache/sling/dynamicinclude/CacheControlFilter.java
@@ -36,7 +36,7 @@ import org.apache.sling.api.SlingHttpServletResponse;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-@SlingFilter(scope = SlingFilterScope.REQUEST, order = 0)
+@SlingFilter(scope = {SlingFilterScope.REQUEST, SlingFilterScope.FORWARD}, 
order = 0)
 public class CacheControlFilter implements Filter {
 
     private static final String HEADER_DATE = "Date";
diff --git 
a/src/main/java/org/apache/sling/dynamicinclude/SyntheticResourceFilter.java 
b/src/main/java/org/apache/sling/dynamicinclude/SyntheticResourceFilter.java
index 5d6c993..ef02a96 100644
--- a/src/main/java/org/apache/sling/dynamicinclude/SyntheticResourceFilter.java
+++ b/src/main/java/org/apache/sling/dynamicinclude/SyntheticResourceFilter.java
@@ -47,7 +47,7 @@ import org.osgi.framework.Constants;
 @Properties({
         @Property(name = Constants.SERVICE_VENDOR, value = "The Apache 
Software Foundation"),
         @Property(name = EngineConstants.SLING_FILTER_SCOPE, value = 
EngineConstants.FILTER_SCOPE_REQUEST, propertyPrivate = true),
-        @Property(name = Constants.SERVICE_RANKING, intValue = 
Integer.MIN_VALUE, propertyPrivate = false), })
+        @Property(name = Constants.SERVICE_RANKING, intValue = 
Integer.MIN_VALUE, propertyPrivate = false) })
 public class SyntheticResourceFilter implements Filter {
 
     @Reference

Reply via email to