HTML5 offline “Application Cache Error event: Manifest fetch failed (-1)”

后端 未结 6 680
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 04:36

I\'m trying to write an HTML5 offline application but can\'t seem to get Chrome to accept the cache manifest file.

Chrome logs the following output to its console wh

6条回答
  •  佛祖请我去吃肉
    2020-12-31 05:04

    Today I experienced exactly the same problem. After hours of working I came the the key point: the format of manifest file. In short, the file must begin a new line ONLY with ascii(0A), not ascii(0D), or ascii(0D + 0A). Only in this way can I live with Chrome, or I will get a blank page, and the error info in the console window.

    According to w3c, (http://www.w3.org/TR/html5/offline.html), in “5.6.3.2 Writing cache manifests”,both 0A, 0D and 0D + 0A are all acceptable. So, my opinion is: Chrome is not compatible with w3c in the point.

    Further more, say, if myapp.js is to be cached, it MUST follow the same rule: begins a new line only with ascii(0A), or Chrome will throw the same info in the console windows.

    My Chrome is 13.0.782.107

提交回复
热议问题