How to force a page refresh in Chrome on iOS?
I'm testing a mobile website and when changing javascript it doesn't seem to refresh it, even when using the "reload" in the menu or when appending a random variable, for example "?test=123" to the end of the url. I also force quite the app but still no luck. Any other ideas?
Solution 1:
Per your comment that "a way to delete the browser cache completely" may be suitable, you can go to the Chrome menu → Settings → Privacy and clear the cache.
Solution 2:
IMO it sounds like client side caching is not your problem. It's more likely you're running into a server side cache problem. If you're using a CDN (cloudflare, cloudfront, etc.) to serve assets, make absolutely sure that you're expiring assets appropriately.
Barring that, I recommend using Chrome in Incognito mode which does not persist a long lived client cache.
Solution 3:
I'm aware that this is an old question, but perhaps this will help others.
In the browser you're using, tap the address bar, and type:
javascript:location.reload(true);
or
data:text/html,<script>location.reload(true);</script>
This has been tested on iPhone XS, in Google Chrome.