HTML5离线缓存 [英] HTML5 offline caching

查看:122
本文介绍了HTML5离线缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读以下Mozilla开发人员文章,其中介绍了如何离线实施HTML 5 Web应用程序中的资源缓存。



我尝试过本地测试:将mime类型添加到列表中,创建清单文件,将我的doctype更改为HTML 5 doctype ,在HTML元素上指定了清单属性和正确的路径 - 但仍然没有看到清单文件被Firefox使用。我也检查了Apache上的访问日志,并没有看到任何清单文件的请求。



有没有人给它一个戳,并取得任何成功?我只是不知道如何进一步解决问题,并欢迎任何建议。 我已经编译了一些资源这可能会对你有所帮助:




I've read the following Mozilla Developer article that explains how to implement HTML 5 offline resource caching in web apps.

I've tried testing this locally: added the mime type to the list, created the manifest file, changed my doctype to the HTML 5 doctype, specified the manifest attribute and the correct path on the HTML element--but still I don't see the manifest file being consumed by Firefox at all. I've also checked the access logs on Apache and didn't see any requests for the manifest file being made.

Has anyone given it a jab and had any success? I just don't know how to further troubleshoot the issue and would welcome any suggestions.

解决方案

I've compiled a few resources that may help you:

这篇关于HTML5离线缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆