如何从asp.net中禁止在mozilla firefox中进行缓存 [英] How to Disallowed caching in mozilla firefox from asp.net
本文介绍了如何从asp.net中禁止在mozilla firefox中进行缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写下面的代码,但仍然无法在firefox 20.0.1中运行。
仍然可以在离线模式下访问页面。执行相同操作的最佳做法是什么。
Response.AppendHeader(Cache-Control,no-cache)'
Response.AppendHeader(Cache-Control,private)'
Response.AppendHeader (Cache-Control,no-store)'
Response.AppendHeader(Cache-Control,must-revalidate)'
Response.AppendHeader(Cache-Control, max-stale = 0)'
Response.AppendHeader(Cache-Control,post-check = 0)'
Response.AppendHeader(Cache-Control,pre-check = 0)'
Response.AppendHeader(Pragma,no-cache)'
Response.AppendHeader(Vary,*)
Response.AppendHeader(Expires ,Mon,26 Jul 1997 05:00:00 GMT)
解决方案
参考
禁用缓存-for-fire-fox-in-asp-net-and-c-sharp [ ^ ]
参考..
LINK1
I write below code but still not work in firefox 20.0.1.
Still pages are access in offline mode.What is the best practice to do the same.
Response.AppendHeader("Cache-Control", "no-cache") ' Response.AppendHeader("Cache-Control", "private") ' Response.AppendHeader("Cache-Control", "no-store") ' Response.AppendHeader("Cache-Control", "must-revalidate") ' Response.AppendHeader("Cache-Control", "max-stale=0") ' Response.AppendHeader("Cache-Control", "post-check=0") ' Response.AppendHeader("Cache-Control", "pre-check=0") ' Response.AppendHeader("Pragma", "no-cache") ' Response.AppendHeader("Vary", "*") Response.AppendHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT")
解决方案
Refer
disable-caching-in-fire-fox-in-asp-net-and-c-sharp[^]
Refer..
link1
这篇关于如何从asp.net中禁止在mozilla firefox中进行缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文