You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by pe...@apache.org on 2010/09/11 15:06:41 UTC
svn commit: r996141 -
/wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java
Author: pete
Date: Sat Sep 11 13:06:40 2010
New Revision: 996141
URL: http://svn.apache.org/viewvc?rev=996141&view=rev
Log:
Despite it's misleading name "Cache-Control: no-cache" translated to "cache, but before serving from the cache, check that the resource is still valid" for caches. However, since a few years browser like IE or Firefox treat this directive as "never cache the resource at all" which is similar to "no-store". Actually what we want is to never cache at all so I changed
"no-cache"
to
"no-cache, no-store"
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java
Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java?rev=996141&r1=996140&r2=996141&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java Sat Sep 11 13:06:40 2010
@@ -267,7 +267,7 @@ public final class RequestUtils
Args.notNull(response, "response");
response.setDateHeader("Date", System.currentTimeMillis());
response.setDateHeader("Expires", 0);
- response.setHeader("Pragma", "no-cache");
+ response.setHeader("Pragma", "no-cache, no-store");
response.setHeader("Cache-Control", "no-cache");
}