iOS6 - How to Clear Cache of Homescreen/Standalone Web App? iOS6 - How to Clear Cache of Homescreen/Standalone Web App? ios ios

iOS6 - How to Clear Cache of Homescreen/Standalone Web App?


I can't verify the cache being cleared properly but this worked for me :

In order to do this, you need to allow Web Inspector on your iOS device.Go to Settings > Safari > Advanced > Web Inspector (it has to be active)And you have to activate the developer menu on your computer's Safari.Go to Preferences > Advanced > Activate Developer menu

  1. Connect your device to your computer with the USB cable
  2. Go to safari > Developpement > Your Device name > Inspect an App (The app has to be running)
  3. This will open The inspector on your computer for the web app
  4. While the inspector is open Clear the cache (command + alt + E)
  5. With the inspector still open refresh the page on your computer (command + R)

Somehow the Webapp cache got cleared and i got the non-cached code.


I found a a work-around. Just put a link on the web page itself for users who are having trouble seeing new version...

<a href="javascript:top.frames.location.reload();">refresh</a>

It works just like the iPhone/iPad refresh button on the address bar!


First plug the phone into the computer then open the web app on the phone and Safari on the computer, then you can open the web inspector in Safari from the menu "Develop>Name of phone>title of app" (if you can't see the develop menu you can turn it on in Safari's preferences).

From there you can see/edit the cookies and local storage just like sites on your computer and pressing command+r while the inspector is focused will reload the app on the phone.