cordova load javascript without cache

Solutions on MaxInterview for cordova load javascript without cache by the best coders in the world

showing results for - "cordova load javascript without cache"
Arun
01 Jun 2016
1// download this plugin. it reset cache on internal browser
2cordova plugin add https://github.com/moderna/cordova-plugin-cache.git
3
4// use this function in index.js or on main html
5document.addEventListener('deviceready', onDeviceReady);
6function onDeviceReady()
7{
8    var success = function(status) {
9        alert('Message: ' + status);
10    }
11
12    var error = function(status) {
13        alert('Error: ' + status);
14    }
15
16    window.cache.clear( success, error );
17}