iis下运行的asp有些网页内容不能更新问题?请问如何设置?

来源:百度知道 编辑:UC知道 时间:2024/06/09 10:02:03
iis下运行的asp有些网页内容不能更新问题?请问如何设置?

跟iis无关,在页面中加入强制刷新的脚本。
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "No-Cache"
可以使得客户端在访问页面时保持从服务器调用而不是从缓存中拿过时的页面显示给你。