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

前端 未结 9 845
悲&欢浪女
悲&欢浪女 2021-02-01 05:11

It would appear that Apple have changed the way homescreen/standalone web apps work in iOS 6. According to various blog posts (example) these apps now get their own dedicated s

9条回答
  •  温柔的废话
    2021-02-01 05:27

    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.

提交回复
热议问题