如何防止ASP页面缓存? [英] How do I prevent my ASP pages from caching?
本文介绍了如何防止ASP页面缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何如何防止缓存我的ASP页面? /pre> 解决方案
请在此处查看: http://www.devx.com/vb2themax/Tip/18635 [ ^ ].
干杯!
—MRB
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetNoStore()
您可以添加此元标记< META HTTP-EQUIV ="CACHE- CONTROL"CONTENT =" NO-CACHE>在此处 [How do I prevent my ASP pages from caching?
解决方案
Please see here: http://www.devx.com/vb2themax/Tip/18635[^].
Cheers!
—MRB
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)) Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetNoStore()
you could add this meta tag <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> more information can be found here[^]
这篇关于如何防止ASP页面缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文