我如何在Asp.Net中为浏览器中的清除缓存执行代码 [英] How Can I Do Code In Asp.Net For Clear Cache From Browser
本文介绍了我如何在Asp.Net中为浏览器中的清除缓存执行代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在ASP.NET中执行代码以便从浏览器中清除缓存
有时我上传代码而我们的用户无法立即看到更改,那怎么能我从浏览器执行清除缓存的代码
How can i do code in ASP.NET for clear cache from browser
Some time i upload the code and our user can not see change instant so how can i do code for clear cache from browser
推荐答案
检查一下
如何在asp.net中强制清除缓存 [ ^ ]
使用
Cache.Remove("Cache_Variable_Name");
参考 - 缓存破坏ASP.NET [ ^ ]。
你需要附加索姆访问静态内容的URL以使其成为浏览器的新内容,以便浏览器下载新内容。
Refer - Cache busting in ASP.NET[^].
You need to append something to the URL of static content in order to make them new for the browser, so that browser will download the new content.
这篇关于我如何在Asp.Net中为浏览器中的清除缓存执行代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文