I'm developing a Cordova 2.9.0 app for Windows Phone 8. The app in question utilises external content heavily, using the JS and HTML content that's being served from another source. It all works fine, but the browser component caches heavily.
The only way I have discovered to clear caches is to uninstall-install the app again to take effect. The downside to this is that my localStorage also clears, slowing down my cycles.
I presume the cache can be cleared by writing extra C# into the Cordova template they serve, which I use by the way.
So while it was not that critical, I did stumble to a working answer. The WebBrowser class does have a suitable method to call: ClearInternetCacheAsync.
Since
CordovaBrowser
inherits fromWebBrowser
, it's just a matter of adding one line toMainPage.xaml.cs
where the C# init of the start page happens:Phonegap Cookies Plugin can be found HERE
A simple, lightweight jQuery plugin for reading, writing and
deleting cookies
can be found HEREI hope it will resolve your problem. Thanks!!