From bd04e351e73d0d2304bc3be443916581efa1bbd8 Mon Sep 17 00:00:00 2001 From: "Joseph Dennis O. Gapuz" Date: Wed, 8 Mar 2006 09:31:56 +0000 Subject: [PATCH] From PVillacorta - Fix IE issue where 1 message is received multiple times. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@384166 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/web/MessageListenerServlet.java | 2 ++ 1 file changed, 2 insertions(+) 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);