- 1. Fresh HTML(HTML編輯器)最新綠色免費版 V3.60
- 2. Becky! Internet Mail(支持html格式郵件) V2.57.01...
- 3. xhEditor(簡單迷你的可視化xhtml編輯器) V1.1.7
- 4. NK2Edit x64 (支持以text/html/xml的格式輸出) V1....
- 5. 網(wǎng)頁探針(查看網(wǎng)頁任意對象HTML源碼) V2.0 簡體中文...
- 6. 都市賽車6 (Asphalt 6)for Android v3.1.6 最...
- 7. 免費ASP論壇程序Web Wiz Forums v9.71 英文版
- 8. 0323版 (卡巴斯基反病毒)病毒庫 Kaspersky Anti-Vi...
- 9. 混淆代碼從而保護知識產(chǎn)權(quán)ASP混天綾 V 0.96
- 10. HTML 文件管家Dirhtml英文綠色免費 V4.8561 版
HTML,ASP各種語言禁止瀏覽器緩存頁面的技巧分享
作者: 來源: 發(fā)布時間:2011-6-3 9:30:13 點擊:
本文一共給大家介紹到了四種語言各自進行禁止瀏覽器緩存頁面的方法,希望對大家有用。
HTTP:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
ASP
response.expires=0
response.addHeader("pragma","no-cache")
response.addHeader("Cache-Control","no-cache, must-revalidate")
PHP
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
JSP:
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
ASP
response.expires=0
response.addHeader("pragma","no-cache")
response.addHeader("Cache-Control","no-cache, must-revalidate")
PHP
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
JSP:
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
[收藏此文章]