手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp、html、js 禁止缓存的代码
asp、html、js 禁止缓存的代码
摘要:ASPResponse.Buffer=TrueResponse.ExpiresAbsolute=Now()-1Response.Expire...

ASP

Response.Buffer = True Response.ExpiresAbsolute = Now() - 1 Response.Expires = 0 Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "No-Cache"

HTML

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="Pragma" CONTENT="no-cache"> <meta http-equiv="Cache-Control" CONTENT="no-cache"> <meta http-equiv="Expires" CONTENT="0">

Javascript

对于js,可以在引用js的时候 后面随便加一个 随机的参数,随机参数由当前页面的js生成,例如:

<script type="text/javascript" src='jscript.js?rnd=10092'>

以上所述就是本文的全部内容了,希望大家能够喜欢。

【asp、html、js 禁止缓存的代码】相关文章:

ASP使用FSO读取模板的代码

asp 特殊字符屏蔽代码

用asp实现的数据库中存取文件的代码

asp中正则表达式过滤html代码函数

asp html标签转换html编码

Asp遍历服务器对象的代码

如何截取asp后台登陆密码的代码

asp调用二级分类代码

很有用的学习ASP常用到的代码第1/2页

Asp防止留言灌水的实例代码

精品推荐
分类导航