<html>
<head>
<base target="_self" />
</head>
<body>
<form method="post">
<input type="submit" value="刷新" />
</form>
</body>
</html>
<head>
<base target="_self" />
</head>
<body>
<form method="post">
<input type="submit" value="刷新" />
</form>
</body>
</html>
解决方案 »
- tomcat7.0+mysql5.0每天第一次连接总是出现错误
- 多个timer = window.setInterval(" ",)时,怎样终止定时刷新
- 带点嵌套的内容应该怎么匹配
- 为什么IE的offsetTop会比top多15px,FF的offset比top多8px?
- 请问如何用JS提取下面这段代码中的成绩和学分单元格里的数据,谢谢~~~~~
- 如何将TABLE>替换成DIV>
- 如何实现126邮箱的收件人的地址栏效果
- js函数传参数
- 关于javascript代码的问题(也许ASP代码)
- 如何控制iframe的高度
- js 动态加行
- google的个性页面的js怎么用cookie保存啊,知道的大哥帮帮忙啊,没有多少分了,谢谢帮忙!
//禁用客户端缓存
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";