HTML特殊字符表
http://www.aygfsteel.com/wiflish/archive/2007/11/01/157540.html
posted @ 2011-03-18 14:40 chenlh 閱讀(210) | 評論 (0) | 編輯 收藏
2009年5月13日 #
posted @ 2011-03-18 14:40 chenlh 閱讀(210) | 評論 (0) | 編輯 收藏
引用自:http://hi.baidu.com/bdzdcjh/blog/item/47055cfcc9c3fbf9fc037f4d.html
網頁
1.禁止客戶端緩存要在<head>中加入類似如下內容(我當然還沒有這么用過):
<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">
2.在動態網頁中禁止緩存,要加入類似如下
(1)(好久不用了):
<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
%>
(2)jsp(我現在經常用的):
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
posted @ 2009-05-13 09:22 chenlh 閱讀(504) | 評論 (0) | 編輯 收藏