如何防止ASP页面缓存? [英] How do I prevent my ASP pages from caching?

查看:84
本文介绍了如何防止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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆