Skip to content

Commit 071a8bf

Browse files
committed
Remove 'must-revalidate' cache directive from NoCacheFilter
1 parent 196c2ef commit 071a8bf

File tree

8 files changed

+17
-13
lines changed

8 files changed

+17
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Java EE Cache Filter
22

3+
## 2.3.1
4+
5+
* Remove `must-revalidate` cache directive from `NoCacheFilter`.
6+
37
## 2.3.0
48

59
* Add support for `Vary` HTTP header in `CacheFilter` responses (#2).

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<plugin>
7474
<groupId>org.apache.maven.plugins</groupId>
7575
<artifactId>maven-compiler-plugin</artifactId>
76-
<version>3.1</version>
76+
<version>3.2</version>
7777
<configuration>
7878
<source>${maven.compiler.source}</source>
7979
<target>${maven.compiler.target}</target>
@@ -83,7 +83,7 @@
8383
<plugin>
8484
<groupId>org.apache.maven.plugins</groupId>
8585
<artifactId>maven-resources-plugin</artifactId>
86-
<version>2.6</version>
86+
<version>2.7</version>
8787
<configuration>
8888
<encoding>${project.build.resourceEncoding}</encoding>
8989
</configuration>
@@ -107,7 +107,7 @@
107107
<plugin>
108108
<groupId>org.apache.maven.plugins</groupId>
109109
<artifactId>maven-source-plugin</artifactId>
110-
<version>2.3</version>
110+
<version>2.4</version>
111111
<executions>
112112
<execution>
113113
<id>sources</id>
@@ -120,7 +120,7 @@
120120
<plugin>
121121
<groupId>org.apache.maven.plugins</groupId>
122122
<artifactId>maven-javadoc-plugin</artifactId>
123-
<version>2.9.1</version>
123+
<version>2.10.1</version>
124124
<executions>
125125
<execution>
126126
<id>javadocs</id>

src/main/java/com/samaxes/filter/CacheFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* <p>
3838
* Filter allowing to enable browser caching.
3939
* </p>
40-
* <table border="1">
40+
* <table summary="Filter options" border="1">
4141
* <tr>
4242
* <th>Option</th>
4343
* <th>Required</th>
@@ -165,7 +165,7 @@
165165
*
166166
* @author Samuel Santos
167167
* @author John Yeary
168-
* @version 2.3.0
168+
* @version 2.3.1
169169
*/
170170
public class CacheFilter implements Filter {
171171

src/main/java/com/samaxes/filter/NoCacheFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
*
6868
* @author Samuel Santos
6969
* @author John Yeary
70-
* @version 2.3.0
70+
* @version 2.3.1
7171
*/
7272
public class NoCacheFilter implements Filter {
7373

@@ -90,7 +90,7 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
9090
HttpServletResponse httpServletResponse = (HttpServletResponse) servletResponse;
9191

9292
// set cache directives
93-
httpServletResponse.setHeader(HTTPCacheHeader.CACHE_CONTROL.getName(), "no-cache, no-store, must-revalidate");
93+
httpServletResponse.setHeader(HTTPCacheHeader.CACHE_CONTROL.getName(), "no-cache, no-store");
9494
httpServletResponse.setDateHeader(HTTPCacheHeader.EXPIRES.getName(), 0L);
9595

9696
filterChain.doFilter(servletRequest, servletResponse);

src/main/java/com/samaxes/filter/NoETagFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/**
3535
* <p>
3636
* Filter allowing to disable {@code ETag} header from a HTTP response.
37-
* <p>
37+
* </p>
3838
* <h2>Sample configuration</h2>
3939
* <p>
4040
* <strong>Note:</strong> This configuration describes how to disable HTTP {@code ETag} header set by the
@@ -63,7 +63,7 @@
6363
*
6464
* @author Samuel Santos
6565
* @author John Yeary
66-
* @version 2.3.0
66+
* @version 2.3.1
6767
*/
6868
public class NoETagFilter implements Filter {
6969

src/main/java/com/samaxes/filter/util/CacheConfigParameter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @author Samuel Santos
2525
* @author John Yeary
26-
* @version 2.3.0
26+
* @version 2.3.1
2727
*/
2828
public enum CacheConfigParameter {
2929
/**

src/main/java/com/samaxes/filter/util/Cacheability.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @author Samuel Santos
2525
* @author John Yeary
26-
* @version 2.3.0
26+
* @version 2.3.1
2727
*/
2828
public enum Cacheability {
2929
/**

src/main/java/com/samaxes/filter/util/HTTPCacheHeader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @author Samuel Santos
2525
* @author John Yeary
26-
* @version 2.3.0
26+
* @version 2.3.1
2727
*/
2828
public enum HTTPCacheHeader {
2929
/**

0 commit comments

Comments
 (0)