问题
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.
回答1:
I've compiled a few resources that may help you:
- HTML 5 Offline Web Applications
- W3C's Offline Web Applications
- Kaizou's Offline Web Applications Blog post (very helpful)
回答2:
Yes I have a full working prototype. At the time the manifest system in firefox was flawed. You can implement the maninfest system in a dynamic way using applicationCache.add(), applicationCache.remove() etc...
The manifest then just needs to be a json file. You will still need to have the @manifest in the html tag.
来源:https://stackoverflow.com/questions/1207150/html5-offline-caching