diff --git a/activemq-web/src/main/java/org/apache/activemq/web/MessageListenerServlet.java b/activemq-web/src/main/java/org/apache/activemq/web/MessageListenerServlet.java index 216be41346..a7077dc7e3 100644 --- a/activemq-web/src/main/java/org/apache/activemq/web/MessageListenerServlet.java +++ b/activemq-web/src/main/java/org/apache/activemq/web/MessageListenerServlet.java @@ -186,6 +186,7 @@ public class MessageListenerServlet extends MessageServletSupport { else { response.setContentType("text/xml"); + response.setHeader("Cache-Control", "no-cache"); response.getWriter().print(""); } // System.err.println("=="); @@ -270,6 +271,7 @@ public class MessageListenerServlet extends MessageServletSupport { // prepare the responds response.setContentType("text/xml"); + response.setHeader("Cache-Control", "no-cache"); StringWriter swriter = new StringWriter(); PrintWriter writer = new PrintWriter(swriter);