Clear the Application Cache in an Android PhoneGap App
Stop stale JavaScript files in an Android PhoneGap WebView by clearing the cache before loading your URL.
I had a problem with caching when loading a WebView in an Android PhoneGap application. Some of the JavaScript files weren’t refreshing, and I spent a lot of time on it before I found the cause. Keep this in mind when you start your development: clear the cache before loading your URL.
super.init();
super.clearCache();
super.loadUrl("http://www.example.com/");