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.
Cheers
AWC
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.
Cheers
AWC
Add a query parameter to the URL for the XAP in the element on the HTML Page:
It will be ignored and break the cache. In IE8, there are some cache management tools: Open the Developer tools:
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.