Re: strange cache behavior in Tomcat 5.5.9?
Gabriel Belingueres wrote: Hi, In my JSP pages I put the following tags to avoid the browser cache the pages. I wouldn't trust this way. I would always use the below method for manipulating any cache control or general HTTP headers. <% response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", 0); %> This is the way to do it. Also, it's backwares compatible. This sends actual HTTP headers back to the client in the response. Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
strange cache behavior in Tomcat 5.5.9?
Hi, In my JSP pages I put the following tags to avoid the browser cache the pages. ... When used in Tomcat 4.1.12 it behaves correctly (the "back" button in the browser doesn't work) but in Tomcat 5.5.9 it seems not to be working since when pressing back button it brings me the previous page. I tested it with IE 6 SP1. The thing is that using the following in my JSP pages it work perfectly in Tomcat 5.5.9: <% response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", 0); %> So the question is why the behavior differs from different versions? Am I doing something wrong? Is this a bug? Thanks in advance, Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]