Author: dolander
Date: Thu Feb 17 07:50:44 2005
New Revision: 154161

URL: http://svn.apache.org/viewcvs?view=rev&rev=154161
Log:
Jira #317 -- The problem here is that IE was caching the XmlHttpRequests and 
therefore
the state was not being updated.  I prevent this by setting the no-cache stuff 
in the
response.


Modified:
    
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/xmlhttprequest/XmlHttpRequestServlet.java

Modified: 
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/xmlhttprequest/XmlHttpRequestServlet.java
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/xmlhttprequest/XmlHttpRequestServlet.java?view=diff&r1=154160&r2=154161
==============================================================================
--- 
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/xmlhttprequest/XmlHttpRequestServlet.java
 (original)
+++ 
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/xmlhttprequest/XmlHttpRequestServlet.java
 Thu Feb 17 07:50:44 2005
@@ -74,8 +74,10 @@
     {
         //System.err.println("Inside the XmlHppRequestServlet:" + 
request.getRequestURI());
 
-        // create an XML empty document....
+        // create an XML empty document, that isn't cached on the client
         response.setContentType("text/xml");
+        response.setHeader("Pragma", "No-cache");
+        response.setHeader("Cache-Control", "no-cache");
         if (_interceptors == null || _interceptors.size() == 0)
             return;
 


Reply via email to