用脚本通过正规的途径是没有办法实现的, 这些信息都写在注册表里头, 脚本想改它就得写注册表
你还要在你的页面里都加入这么一段代码吧, 禁止客户端的缓存, 与这个设置效果是一样的:
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 12: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);
C#中禁止cache的方法!
Response.Buffer=true;
Response.ExpiresAbsolute=System.DateTime.Now.AddSeconds(-1);
Response.Expires=0;
Response.CacheControl="no-cache";
你还要在你的页面里都加入这么一段代码吧, 禁止客户端的缓存, 与这个设置效果是一样的:
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 12: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);
C#中禁止cache的方法!
Response.Buffer=true;
Response.ExpiresAbsolute=System.DateTime.Now.AddSeconds(-1);
Response.Expires=0;
Response.CacheControl="no-cache";
解决方案 »
- 漂亮的层的过渡效果,在线等!
- 可以用css实现裁剪功能么?
- js 字符串TO array
- 急急急--尋找幾個數組中的相同元素
- 共赏: Very Good 的TabStrip、Menu、TreeView !
- 如何判断某一窗体是否已经打开?(目的:避免“刷新”已打开的窗口)
- 提问:两个菜鸟问题,哪位老大能帮我解决一下。100分送上。
- 我有这样一个button按钮,怎样当button中的文字长度大于button按钮的宽度的时候自动换行?
- 请问:我想在ACTION="里指向不同的网址,如何办到?
- 怎样改变弹出窗口的默认输入法??急 ~~~~~~~
- 我想做一个跟数据库相连的弹出式菜单,高手赐教~~急
- 如何判斷輸入是否為合法的郵件地址!!!!
<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
%>
是不是先改注册表,如果要改注册表,怎么用<javaScript>或ASP 来自动改