Internet Explorer缓存asp.netmvc ajax结果

Internet Explorer缓存asp.netmvc ajax结果,第1张

Internet Explorer缓存asp.netmvc ajax结果

尝试:

[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]

放置在控制器类中的此属性禁用缓存。由于不需要在应用程序中缓存,因此将其放置在baseController类中:

[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]public abstract class baseController : Controller{

这是有关OutputCacheAttribute的很好的描述:通过输出缓存提高性能

您也可以将其付诸行动。



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4983863.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-14
下一篇 2022-11-14

发表评论

登录后才能评论

评论列表(0条)

保存