I've been developing a mobile web app for iPad and I've been running into an issue while testing my code.
Occasionally, and seemingly at random, the iPad will stop properly updating all of the JS libraries I've written. After updating some code and posting the changes, I will notice some files will have properly updated while others have not. This bahavior persists after numerous cache clears, power cycles, and wifi toggles.
If I load the app in safari i have no issues with it, but when I load from the app's homescreen icon the problem re-appears. I've done simple tests like adding an alert line to a library and that alert fires without issue anywhere except within the mobile-web-app window. Then, seemingly at random again, the problem is disappears, sometimes it takes 5 minutes, sometimes it takes an hour.
I see this behavior regardless of whether the app is using a manifest file or not. I have also tried to flush these legacy files by updating the manifest file to force the recache that way, but the problem still persists.
Does anyone know if this is a known issue with iPad? Is there anything on my end that can be done to address this?
For me, the solution is adding ?v=1
at the end of all your Javascript and CSS links.
I've tried everything before seeing that on another Stackoverflow post and it worked directly !!! It was about time...