日期:2014-05-16  浏览次数:20318 次

JSP 去掉缓存
在JSP页面的头部加上
<%
    response.setHeader("Cache-Control","no-cache,post-check=0,pre-check=0");
	response.setHeader("Pragma","no-cache");
	response.setHeader("Expires","Thu,01 Dec 1994 16:00:00 GMT");
	response.setDateHeader("Expires", -1);
%>
<meta http-equiv="pragma"? content='no-cache'>
??? <meta http-equiv="Cache-Control" content='no-cache, must-revalidate'>
??? <meta content="0" http-equiv="expires" >

?