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同样生效。
Link URL: http://RobinOuyang.itpub.net/post/5567/456609
Link URL: http://RobinOuyang.itpub.net/post/5567/456609
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/74133/viewspace-687693/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/74133/viewspace-687693/