首页 > 代码库 > 页面后退时强制刷新页面方法

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

 

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">

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