git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1511967 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2013-08-08 19:21:22 +00:00
parent c7aad77a16
commit 42b4e0c810
1 changed files with 3 additions and 1 deletions

View File

@ -249,7 +249,9 @@ public class MessageServlet extends MessageServletSupport {
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();