On iOS, where is the “add to homepage” cache kept, and how do I clear it?

一曲冷凌霜 提交于 2019-12-06 09:19:24

This is a massive pain, but this can be fixed by changing the name of the manifest file every time you want to use a newer version.

It's important that the old file no longer exists on the server. If the app can grab the old one off the server, it'll use that instead of the new one even if the new html file refers to the new one.

Well, I tried quite a few things but I was able to clear caches in iOS 7 by going into the phone's Settings -> Safari -> Advanced and turning off Javascript, loading the page without Javascript, then turning it back on. It also cleared the Add To Home Screen cache finally.

This works for Javascript files. Mobile Safari seems to have a bug where a Javascript file which had a syntax error becomes wedged in the cache forever. Especially if you attach a debugger. Chrome had a similar problem in the past, but in the new versions it's solved by opening a new tab.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!