gpt4 book ai didi

silverlight - Silverlight 是否每次都下载程序集?

转载 作者:行者123 更新时间:2023-12-04 17:29:16 31 4
gpt4 key购买 nike

Silverlight 应用程序是在您每次访问该站点时都会下载,还是会检查版本/大小信息并仅下载较新版本的文件?

最佳答案

Silverlight 2 在这方面没有什么特别的,我读过的最简洁的解释来自 this post在 Silverlight.net 上:

"Silverlight falls under the same caching rules as any other web content. If the user clears their cache, your xap will have to be downloaded again. In normal circumstances, the xap is downloaded only when changed or when the cache expires."



您可以按照 steps outlined here 控制缓存何时到期。 :

You can turn the Enable Content Expiration HTTP header option on for your XAP file. Open IIS Manager, goto Default Web Site and find your Web site for the silverlight project. Find the XAP file under ClientBin. Goto the properties page of the XAP file, on HTTP Headers Tab, Turn on "Enable Content Expiration", click the "Expire Immediately" radio button. Save the change.

This way the new XAP (only there is a new XAP) will get downloaded when you refresh your page without having to close the browser.



related post也可能有兴趣。

关于silverlight - Silverlight 是否每次都下载程序集?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/550063/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com