JSP关于cache过期的问题
各位高手,我在开发过程中遇到一个问题
如果再页面上点击后退按钮,要求显示内存已经过期的错误页面
添加上述代码成功完成
response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
但是新的问题出现,如果在ie中设定proxy server的话
类似 address:www.proxy.com.cn,port 8080
上述代码就失去了作用,可以正确返回,这个不是我想要得
请问各位高手有没有好的解决方案,谢谢了