Safari HTML5 离线问题
我正在尝试运行一个支持 HTML5 离线工作的脚本。它在 Firefox 中工作正常,但在 safari 中却不行。我希望它也能在 Safari 中工作。你可以在这里看到。
http://vps.sunztech.com/clock.html
如何检查离线工作:打开连接互联网时的 URL。加载所有内容后关闭浏览器。现在禁用互联网并再次加载该 URL,它应该显示缓存中的数据。
上面的代码在 Firefox 中运行良好,但在 Safari 中则不行。
希望任何人都可以给我解决方案...
我将不胜感激
I am trying to run a script that supports for HTML5 offline working. It works fine in Firefox but not in safari. I want it to work in safari too. You can see here.
http://vps.sunztech.com/clock.html
HOW TO CHECK OFFLINE WORKING: open the URL when internet is connected.close the browser after loading all contents. now disable internet and load that URL again it should show the the data from cache.
The above is working fine in Firefox but not in Safari.
May anyone can give me the solution...
I will be thankful
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保清单文件的类型为
text/cache-manifest
。还有其他一些指南值得检查 Apple 开发人员iPhone 和 Mobile Safari 的文档。Make sure that the manifest file is served as type
text/cache-manifest
. There are several other guidelines worth checking in Apple's developer documentation for iPhone and Mobile Safari.