Author: tyrell
Date: Sat Jan 12 12:08:41 2008
New Revision: 12162

Log:

Disabling page cache in the browser.

Modified:
   trunk/mashup/java/modules/www/editor.jsp

Modified: trunk/mashup/java/modules/www/editor.jsp
==============================================================================
--- trunk/mashup/java/modules/www/editor.jsp    (original)
+++ trunk/mashup/java/modules/www/editor.jsp    Sat Jan 12 12:08:41 2008
@@ -21,6 +21,10 @@
 <%@ page import="org.wso2.registry.Resource" %>
 <%@ page import="java.net.URLDecoder" %>
 <%
+    //Disabling browser caching
+    response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1
+    response.setHeader("Pragma", "no-cache"); //HTTP 1.0
+    response.setDateHeader("Expires", 0); //prevents caching at the proxy 
server
 
     Registry registry = RegistryUtils.getRegistry(request);
     String bounceback = request.getParameter("bounceback");
@@ -65,6 +69,10 @@
 %>
 <html>
 <head>
+    <!--Do not cache -->
+    <meta http-equiv="PRAGMA" content="NO-CACHE">
+    <meta http-equiv="expires" content=<%= new java.util.Date() %>>
+    
     <title>Mashup Editor</title>
     <!-- Required CSS -->
     <link href="css/styles.css" rel="stylesheet" type="text/css"/>

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to