Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Silverlight 3 from caching while debugging

I'm assuming the issue I'm having is related to caching. Code changes I make are not getting picked up when I debug. Most times I get served a previous version of the app. How do I prevent this from happening?

like image 949
Micah Avatar asked Nov 22 '09 04:11

Micah


2 Answers

Ctrl+F5 is an easy way to refresh a page and clear the cache of that page at the same time - it may help :)

like image 71
Chris Avatar answered Sep 22 '22 02:09

Chris


Try to add to the page that hosts Silverlight application on Page_Load:

      Response.Cache.SetExpires(DateTime.Now.AddSeconds(-100));
      Response.Cache.SetCacheability(HttpCacheability.NoCache);
like image 41
cromacl Avatar answered Sep 25 '22 02:09

cromacl