使得Silverlight的XAP文件从浏览器缓存过期编程 [英] Making the Silverlight XAP file expire from browser cache programmatically
本文介绍了使得Silverlight的XAP文件从浏览器缓存过期编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
该怎么办我prevent一个Silverlight XAP文件被Web浏览器被缓存?
How to do I prevent a Silverlight XAP file being cached by the web browser?
我想这样做的原因是发展我不想要手动清除浏览器缓存中,我正在寻找一个纲领性的方法服务器端。
The reason I want to do this is during development I don't want to manually clear the browser cache, I'm looking for a programmatic approach server side.
推荐答案
使用IIS管理添加自定义标题的Cache-Control
与值无-cache
。这会导致浏览器检查XAP任何缓存的版本是使用它之前的最新产品。
Using IIS management add a custom header Cache-Control
with the value no-cache
. That'll cause the browser to check that any cached version of the XAP is the latest before using it.
这篇关于使得Silverlight的XAP文件从浏览器缓存过期编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文