htm
網頁
<metahttp-equiv="pragma"content="no-cache">
<metahttp-equiv="cache-control"content="no-cache,must-revalidate">
<metahttp-equiv="expires"content="wed,26feb199708:21:57gmt">
或者<metahttp-equiv="expires"content="0">
asp網頁
response.expires=-1
response.expiresabsolute=now()-1
response.cachecontrol="no-cache"
.net網頁
response.Buffer = False
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires=0/-1
清除圖片緩存
Response.Cache.SetCacheability(HttpCacheability.No Cache)
php網頁
header("expires:mon,26jul199705:00:00gmt");
header("cache-control:no-cache,must-revalidate");
header("pragma:no-cache");
jsp網頁
response.addHeader("pragma", "no-cache");
response.addHeader("cache-control", "no-cache,must-revalidate");
response.addHeader("expires", "0");
posted on 2008-08-31 11:17
百年 閱讀(1229)
評論(0) 編輯 收藏 所屬分類:
Asp Article 、
.net