如何防止IE緩存頁面文件
更新時(shí)間:2007年01月18日 00:00:00 作者:
清除緩存,防止模式窗口頁面不更新的情況:
Code:
HTML
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Mon, 23 Jan 1978 20:52:30 GMT">
ASP
<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
%>
PHP
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
JSP
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0);
Code:
HTML
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Mon, 23 Jan 1978 20:52:30 GMT">
ASP
<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
%>
PHP
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
JSP
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0);
相關(guān)文章
比較詳細(xì)的分析下載站的發(fā)展注意事項(xiàng)
比較詳細(xì)的分析下載站的發(fā)展注意事項(xiàng)...2007-11-11重置動(dòng)易(SiteWeaver 6.5)的管理員密碼的代碼
有朋友問我,動(dòng)易密碼忘了怎么辦?下面就是一個(gè)很好的解決方法,在線修改程序2008-07-07告別Google補(bǔ)充材料的五個(gè)注意事項(xiàng)
告別Google補(bǔ)充材料的五個(gè)注意事項(xiàng)...2007-03-03