JSP关于cache过期的问题

Bruce_1981 2007-10-03 12:31:15
各位高手,我在开发过程中遇到一个问题
如果再页面上点击后退按钮,要求显示内存已经过期的错误页面
添加上述代码成功完成
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
上述代码就失去了作用,可以正确返回,这个不是我想要得
请问各位高手有没有好的解决方案,谢谢了
...全文
132 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Bruce_1981 2007-10-04
  • 打赏
  • 举报
回复
已经等了一天了,有没有高手有解决方案阿,急!!!!!!!
Bruce_1981 2007-10-03
  • 打赏
  • 举报
回复
如果后退的时候自己做一个错误页面的话,请问大家有解决方案吗

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧