activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1511967 - /activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
Date Thu, 08 Aug 2013 19:21:22 GMT
Author: tabish
Date: Thu Aug  8 19:21:22 2013
New Revision: 1511967

URL: http://svn.apache.org/r1511967
Log:
fix for: https://issues.apache.org/jira/browse/AMQ-4675

Modified:
    activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java

Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java?rev=1511967&r1=1511966&r2=1511967&view=diff
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
(original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
Thu Aug  8 19:21:22 2013
@@ -249,7 +249,9 @@ public class MessageServlet extends Mess
     protected void writeResponse(HttpServletRequest request, HttpServletResponse response,
Message message) throws IOException, JMSException {
         int messages = 0;
         try {
-
+        	response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP
1.1
+        	response.setHeader("Pragma", "no-cache"); // HTTP 1.0
+        	response.setDateHeader("Expires", 0);
             // write a responds
             PrintWriter writer = response.getWriter();
 



Mime
View raw message