asp、html、js 禁止缓存的代码_ASP教程-查字典教程网
asp、html、js 禁止缓存的代码
asp、html、js 禁止缓存的代码
发布时间:2016-12-29 来源:查字典编辑
摘要: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教程学习
    热门ASP教程学习
    编程开发子分类