页面后退时强制刷新页面方法

 

1、

 response设置

  response.setHeader

  各种不缓存的header头。 

( "Pragma", "no-cache" );
( "Cache-Control", "must-revalidate" );
( "Cache-Control", "no-cache" );
( "Cache-Control", "no-store" );  

1、页面head设置

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">

posted @ 2016-09-02 17:50  懦酷  阅读(3338)  评论(0编辑  收藏  举报