<div dir="ltr">Hi Everyone,<div><br></div><div>May i check, why does the http response header will always appear as Cache-Control: public</div><div><br></div><div>even though i already put the following code in the JSP</div><div><br></div><div><br></div><div><div><%@page import="org.opencms.flex.*" %></div><div><%@page import="org.opencms.util.*" %></div><div><%</div><div><br></div><div>HttpServletResponse topLevelResponse = </div><div>CmsFlexController.getController(request).getTopResponse();</div><div>topLevelResponse.setHeader("Cache-Control", "no-cache" );</div><div>topLevelResponse.setHeader("expires", "0" );</div><div>topLevelResponse.setHeader("expires", "Tue, 01 Jan 1980 1:00:00 GMT" );</div><div>topLevelResponse.setHeader("expires", "0" );</div><div>topLevelResponse.setHeader("pragma", "no-cache" );</div><div><br></div><div>topLevelResponse.setHeader("Pragma", "no-cache"); // although a request header only, it is interpreted by some older proxies</div><div>topLevelResponse.setHeader("Cache-Control", "no-cache");</div><div>topLevelResponse.addHeader("Cache-Control", "max-age=0");</div><div>topLevelResponse.addHeader("Cache-Control", "must-revalidate");</div><div>topLevelResponse.addHeader("Cache-Control", "private");</div><div><br></div><div>%>abc1a</div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><p><font size="2" color="#8f8f8f" face="Verdana"><b>Pan Zhiwei <br></b></font></p><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>