1銆傚湪Asp欏甸潰棣栭儴<head>鍔犲叆
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "No-Cache"
2銆傚湪HtML浠g爜涓姞鍏?nbsp;
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
</HEAD>
3銆傚湪閲嶆柊璋冪敤鍘熼〉闈㈢殑鏃跺欏湪緇欓〉闈紶涓涓弬鏁?nbsp;
Href="****.asp?random()"
鍓嶄袱涓柟娉曟嵁璇存湁鏃朵細澶辨晥錛岃岀涓夌鍒欐槸鍦ㄨ煩杞椂浼犱竴涓殢鏈虹殑鍙傛暟錛?鍥犱負aspx鐨勭紦瀛樻槸涓庡弬鏁扮浉鍏?nbsp;
鐨勶紝濡傛灉鍙傛暟涓嶅悓灝變笉浼氫嬌鐢ㄧ紦瀛橈紝鑰屼細閲嶆柊鐢熸垚欏甸潰錛屾瘡嬈¢兘浼犱竴涓殢鏈虹殑鍙傛暟灝卞彲浠ラ伩鍏嶄嬌鐢ㄧ紦瀛樸?font color="#800080">
榪欎釜浠呴傜敤浜巃sp&asp.net
4銆傚湪jsp欏甸潰涓彲浣跨敤濡備笅浠g爜瀹炵幇鏃犵紦瀛橈細
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1

response.setHeader("Pragma","no-cache"); //HTTP 1.0

response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

榪欎簺浠g爜鍔犲湪<head> </head>涓棿鍏蜂綋濡備笅
<head>

<%

response.setHeader("Cache-Control","no-cache"); //HTTP 1.1

response.setHeader("Pragma","no-cache"); //HTTP 1.0

response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

%>

</head>

5銆倃indow.location.replace("WebForm1.aspx")
鍙傛暟灝辨槸浣犺瑕嗙洊鐨勯〉闈紝replace鐨勫師鐞嗗氨鏄敤褰撳墠欏甸潰鏇挎崲鎺塺eplace鍙傛暟鎸囧畾鐨勯〉闈€?
榪欐牱鍙互闃叉鐢ㄦ埛鐐瑰嚮back閿備嬌鐢ㄧ殑鏄痡avascript鑴氭湰錛?/strong>涓句緥濡備笅錛?/p>
a.html
<html>
<head>
<title>a</title>

<script language="javascript">

function jump()
{
window.location.replace("b.html");
}
</script>
</head>
<body>
<a href="javascript:jump()">b</a>
</body>
</html>
b.html
<html>
<head>
<title>b</title>

<script language="javascript">

function jump()
{
window.location.replace("a.html");
}
</script>
</head>
<body>
<a href="javascript:jump()">a</a>
</body>
</html>


鍓?縐嶅彧鏄竻絀轟簡cache錛屽嵆瀛樺偍鍦═emporary Internet Files鏂囦歡澶逛腑鐨勪復鏃舵枃浠訛紝鑰岀浜旂鍒欐槸浣跨敤璺寵漿欏甸潰鏂囦歡鏇挎崲褰撳墠欏甸潰鏂囦歡錛屽茍娌℃湁娓呯┖cache錛屼篃灝辨槸璇碩emporary Internet Files浜х敓浜嗙浉鍏崇殑涓存椂鏂囦歡錛屼袱鑰呮惌閰嶄嬌鐢ㄧ湡鏄竻絀虹紦瀛橈紝蹇呭鑹嵂銆?/p>

]]>