Open GoogleCodeExporter opened 9 years ago
Does Jmesa introduce a "no-cache" header in response?
PROD issue.
Please help!
Original comment by shrividh...@gmail.com
on 30 Mar 2011 at 2:38
You can see the header response settings in the AbstractViewExporter class.
public void responseHeaders(HttpServletResponse response)
throws Exception {
response.setContentType(getContextType());
String encoding = coreContext.getPreference(ENCODING);
if (encoding == null) {
encoding = Charset.defaultCharset().name();
}
String fn = new String(fileName.getBytes(encoding), encoding);
response.setHeader("Content-Disposition", "attachment;filename=\"" + fn + "\"");
response.setHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");
response.setHeader("Pragma", "public");
response.setDateHeader("Expires", (System.currentTimeMillis() + 1000));
}
I wish there was more that I could say...I have not had to export with https
yet and have not had the issue.
Original comment by jeff.johnston.mn@gmail.com
on 30 Mar 2011 at 9:52
Original issue reported on code.google.com by
vidhya.a...@gmail.com
on 29 Mar 2011 at 7:25