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

前端 未结 9 863
悲&欢浪女
悲&欢浪女 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:32

    The only way to deal with this currently is to wait, but there is a workaround. If you change the name of the file, it will pull the new code. However, if you change it back to the old name before the cache clears, the old code will be used. The cache refreshes periodically and will update eventually. I just had this happen to me with a CSS file that refused to change. Time will fix it, but if you just need it to update for testing, a name change will work.

提交回复
热议问题