HTML5 offline caching

 ̄綄美尐妖づ 提交于 2019-12-17 17:29:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!