You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2004/04/25 04:29:41 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/action RequestProcessor.java

husted      2004/04/24 19:29:41

  Modified:    src/share/org/apache/struts/action RequestProcessor.java
  Log:
  Apply #28544 "processNoCache() method does not expire properly" submitted by Haroon Rafique
  
  Revision  Changes    Path
  1.45      +5 -5      jakarta-struts/src/share/org/apache/struts/action/RequestProcessor.java
  
  Index: RequestProcessor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/RequestProcessor.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- RequestProcessor.java	14 Mar 2004 06:23:42 -0000	1.44
  +++ RequestProcessor.java	25 Apr 2004 02:29:41 -0000	1.45
  @@ -698,7 +698,7 @@
   
           if (moduleConfig.getControllerConfig().getNocache()) {
               response.setHeader("Pragma", "No-cache");
  -            response.setHeader("Cache-Control", "no-cache");
  +            response.setHeader("Cache-Control", "no-cache,no-store,max-age=0");
               response.setDateHeader("Expires", 1);
           }
   
  
  
  

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