portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwat...@apache.org
Subject svn commit: r366684 - /portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/engine/JetspeedServlet.java
Date Sat, 07 Jan 2006 06:08:54 GMT
Author: rwatler
Date: Fri Jan  6 22:08:52 2006
New Revision: 366684

URL: http://svn.apache.org/viewcvs?rev=366684&view=rev
Log:
no cache J2 pipeline requests

Modified:
    portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/engine/JetspeedServlet.java

Modified: portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/engine/JetspeedServlet.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/engine/JetspeedServlet.java?rev=366684&r1=366683&r2=366684&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/engine/JetspeedServlet.java
(original)
+++ portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/engine/JetspeedServlet.java
Fri Jan  6 22:08:52 2006
@@ -219,7 +219,13 @@
             String wasFiltered = (String) req.getAttribute("org.apache.jetspeed.content.filtered");
             if (wasFiltered == null || !wasFiltered.equals("true"))
             {
+                // ensure that no proxy or brower caching is performed
+                // on dynamic responses resulting from pipeline execution
+                res.setHeader("Cache-Control", "no-cache,no-store,private"); // HTTP/1.1
modern browser/proxy
+                res.setHeader("Pragma", "no-cache");                         // HTTP/1.0
non-standard proxy 
+                res.setHeader("Expires", "0");                               // HTTP/1.0
browser/proxy
 
+                // send request through pipeline
                 RequestContextComponent contextComponent = (RequestContextComponent) Jetspeed.getComponentManager()
                         .getComponent(RequestContextComponent.class);
                 RequestContext context = contextComponent.create(req, res, getServletConfig());
@@ -336,4 +342,4 @@
         String ipAddress = (String)se.getSession().getAttribute(SecurityValve.IP_ADDRESS);
         statistics.logUserLogout(ipAddress, subjectUserPrincipal.getName(), sessionLength);
       
     }
-}
\ No newline at end of file
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message