Making the Silverlight XAP file expire from browser cache programmatically

后端 未结 7 997
自闭症患者
自闭症患者 2020-12-05 02:42

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 br

7条回答
  •  天命终不由人
    2020-12-05 03:35

    Add a query parameter to the URL for the XAP in the element on the HTML Page:

    • clientBin/MyApp.xap?rev=1
    • clientBin/MyApp.xap?rev=2

    It will be ignored and break the cache. In IE8, there are some cache management tools: Open the Developer tools:

    • Try Cache...Always Refresh from Server
    • Try Cache...Clear Browser Cache for this domain...

提交回复
热议问题