2008 年 03 月 06 日, 星期四

JSP使页面过期

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" ); 尤其要注意那个no-store的,这个才可以保证对firefox同样生效。
RobinOuyang 发表于:2008.03.06 14:40 ::分类: ( Java Programming ) ::阅读:(57次) :: 评论 (0) :: 引用 (0)

发表评论

标题

在此添加评论

称呼

邮箱地址(可选)

个人主页(可选)