【发布时间】:2016-05-21 18:11:06
【问题描述】:
我希望我的网站在浏览器(chrome)中绝对没有缓存。我想用清单文件解决这个问题,因为元标记没有效果。
这里是我的解决方案:
在 html 中:
<html manifest="cache.manifest">
在我的 cache.manifest 文件中:
CACHE MANIFEST
#Cache manifest version 1.0
CACHE
#no cache
NETWORK
*
以及chrome日志中的错误:
Creating Application Cache with manifest http://localhost/editor-xampp/cache.manifest
Application Cache Checking event
Application Cache Downloading event
Application Cache Progress event (0 of 3) http://localhost/editor-xampp/CACHE
Application Cache Error event: Resource fetch failed (4) http://localhost/editor-xampp/CACHE
有人对此有解决方案吗?
什么意思:Resource fetch failed (4)?
感谢您的帮助!
【问题讨论】: