Commit ada6af4a authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Allow to disable no-cache so that SSL can work fine with IE and Flash

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10660 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6e11b860
...@@ -323,10 +323,12 @@ public class HttpBindServlet extends HttpServlet { ...@@ -323,10 +323,12 @@ public class HttpBindServlet extends HttpServlet {
response.setCharacterEncoding("utf-8"); response.setCharacterEncoding("utf-8");
if ("GET".equals(method)) { if ("GET".equals(method)) {
if (JiveGlobals.getBooleanProperty("xmpp.httpbind.client.no-cache.enabled", true)) {
// Prevent caching of responses // Prevent caching of responses
response.addHeader("Cache-Control", "no-store"); response.addHeader("Cache-Control", "no-store");
response.addHeader("Cache-Control", "no-cache"); response.addHeader("Cache-Control", "no-cache");
response.addHeader("Pragma", "no-cache"); response.addHeader("Pragma", "no-cache");
}
content = "_BOSH_(\"" + StringEscapeUtils.escapeJavaScript(content) + "\")"; content = "_BOSH_(\"" + StringEscapeUtils.escapeJavaScript(content) + "\")";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment