Clearing the cache of apps for websites that you add to the home screen on the iPad

Problem: I tried everything I can think of to clear the website cache that has been added to my home screen. Here is what I have tried.

  • Close all running webapp instances by double-clicking on the main screen.
  • Closed all instances of Safari.
  • Removed webapp from the main screen.
  • Settings -> Safari -> Cleared Cache and History.

Safari clears the cache and I see the latest version of my web application. However, as soon as I add it to the main screen, it will display the old version. If I add "#" to the url, it will only load the new html file, however it looks like all css applications are still cached.

Any ideas? Thanks!

+4
source share
4 answers

If you are using a cache manifest file, be sure to modify something in the .manifest file to trigger a cache update.

+1
source

Set the date of your iPad a few days into the future and reopen the web application. Then it restarts it correctly. After that, you can reset the date to the current date. Very strange, Apple has to take care of this ...

+9
source

If you can change the subdirectory of the bookmark URL (for example, change www.mysite.com/test1 to www.mysite.com/test2), then add the site back to the main screen, which should also work.

0
source

After using the date trick mentioned by Lukas, add some meta tags to the <head> section of your html to make sure it reloads easily in the future:

 <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" /> 
0
source

All Articles