I have a Phonegap application where I need to delete the html cache at some point because I updated the images in my application.
I tried this:
[[NSURLCache sharedURLCache] removeAllCachedResponses]; [[NSURLCache sharedURLCache] setDiskCapacity:0]; [[NSURLCache sharedURLCache] setMemoryCapacity:0];
Called in the plugin via javascript, I do:
location.reload( true )
But I still see the same image that seems to be caching.
Is there any other way to do this? I can tell the user to exit the application and kill it and restart it after.
Thanks!
source share