html5 清单缓存错误
我正在创建一个 html5 网络应用程序。在该 Web 应用程序中,内容是从 XML 提要动态加载的。 feed XML 包含图像 URL 列表。我在cache.manifest 文件中添加了该URL 以支持离线访问。在该 URL 列表中,如果一个 URL 给出 404,因为缓存不起作用,如何解决此问题。
I am creating a html5 web app. In that web app Contents are loaded dynamically from the XML feed. The feed XML has list of image URLs. I added that URLs in the cache.manifest file to support offline access. In that list of URLs if one URL is giving 404, because of that caching is not working how to solve this issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果存在任何错误,清单缓存文件将失败(因此您的应用程序缓存将不完整)。因此,如果
close.png
URL 抛出 404,请将其删除或更正 — 否则您的缓存将无法工作,就这么简单。Manifest cache files will fail (and therefore your appcache will be incomplete) if there are any errors at all. So, if the
close.png
URL is throwing a 404, remove it or correct it—your cache won't work otherwise, simple as that.