I have one html file and one js file.
The html file is refreshed, but the js file never gets reloaded.
I have tried clearing the history and the cache as well as turning the iPad off.
I have also deleted all nine pages in the iPad.
Finally I found a workaround. Renaming the js file solved the problem.
But it is an awkward solution.
Is there a better way?
(I’m using the oldest iPad. Can’t find out any version numbers.)
To force a reload of a JavaScript file during development I typically add a query string parameter to the end of the file. Like this:
When development is complete for that version I include a version number in the file name.
This can be a good idea during testing even if you’re not having problems with an iPad or similar. You want to be confident that people are seeing the latest version of the file and explaining how to empty their browser’s cache or forcing them to refresh every page will cause problems and false bug reports.