This answer helped me: Prevent caching of .css files in UIWebView loaded from disk
Basically, you just need to add the increment as a parameter to the link, for example ?version=1 or ?time=12345678 . For example: <script src="myscript.js?version=123></script>
For dynamically loaded javascript, I use:
script.src = "myscript.js?version="+new Date().getTime();
and the script is updated properly, without the version parameter, the file is cached in UIWebView.
source share