Mobile Safari 不会停止缓存
我正在为移动 Safari 编写一个离线应用程序。
我刚刚到达了它将在主屏幕上创建应用程序图标并离线运行的阶段。
现在我想更新应用程序中的 HTML,但它拒绝刷新。 我尝试过刷新按钮、“清除缓存”设置选项,我什至已经关闭了服务器,但 safari 仍然显示该页面。
帮助!
I'm writing an offline app for mobile Safari.
I have just gotten to the point where it will create the app icon on the home screen and function offline.
Now I want to update the HTML in my app, but it refuses to refresh.
I've trIed the refresh button, the "clear cache" settings option, I have even taken down the server but safari still shows the page.
Help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要修改缓存清单。您只需在清单中添加注释行即可。当您这样做时,浏览器将重新下载整个应用程序。
有关此主题的更多信息可以在这里找到:http://diveintohtml5.ep.io/offline。 html#调试
你的情况有点符合标题:)
You need to modify the cache manifest. You can just add a comment line to the manifest. When you do, the browser will redownload the whole app.
More info about this topic can be found here: http://diveintohtml5.ep.io/offline.html#debugging
Your situation kind of applies to the title :)