`
java_true
  • 浏览: 111178 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

网页后退过期的实现

 
阅读更多
加入以下代码即可:
        <META http-equiv="Expires" content="0"/>
		<META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/>  
		<META http-equiv="Pragma" content="no-cache"/> 
			<%
			response.setHeader("Pragma","no-cache"); 
			response.setHeader("Cache-Control","no-store, no-cache, must-revalidate"); 
			response.setDateHeader("Expires", 0);
			%>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics