HTML5 缓存行为不当
我有一个漂亮的小缓存清单文件,我将其嵌入到我的 index.html
页面中:
CACHE MANIFEST
# version 8
9341.js
9341.css
none.cur
NETWORK:
http://*
一切都很顺利,并且所登记的资源都被缓存了。但是,尽管我对清单文件的最后两行进行了努力,但浏览器拒绝加载 http://www.google .com/jsapi 文件在随后的重新加载中指出它无法加载资源(Chrome)。
Opera 11、Chrome 15 中存在该问题,Mozilla 出于某种原因没有问题。当我删除清单文件时,问题就消失了。你们中有人知道这可能是什么原因造成的吗?是比较麻烦的。 >>>在线演示
I have this nice little cache manifest file, which I embed into my index.html
page:
CACHE MANIFEST
# version 8
9341.js
9341.css
none.cur
NETWORK:
http://*
Everything goes smoothly and the enlisted resources get cached. However, despite my efforts on the last two lines of the manifest file, the browser refuses to load http://www.google.com/jsapi file on the consequent reloads stating that it Failed to load resource (Chrome).
The problem is present in Opera 11, Chrome 15, Mozilla is for some reason fine. The problem disappears when I remove the manifest file. Any of you knows what might be causing this? It's rather bothersome. >> Online demonstration
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将
NETWORK
指令设置为*
解决了该问题。答案在此处找到。Setting the
NETWORK
directive to*
solved the problem. Answer found here.