您现在的位置是:网站首页> 编程资料编程资料

asp、html、js 禁止缓存的代码_应用技巧_

2023-05-25 183人已围观

简介 asp、html、js 禁止缓存的代码_应用技巧_

ASP

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

 
HTML

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