Smile 笑容

Application Cache Error event: Manifest fetch failed (9) 错误怎么回事?

chrome 未来将会关闭 对 http协议下的 Application Cache 缓存功能,停用这个功能是为了更好的安全考虑。替代方案是使用相对更安全的https协议。(暂时并没有公布具体的停止时间)

Use of the Application Cache is deprecated on insecure origins. Support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

在使用https协议下 Application Cache 的时候,可能会出现这样的错误:

Application Cache Error event: Manifest fetch failed (9)

这个是由于chrome验证证书的时候发生了错误,如果是正规签署的证书则没有问题,一般出现在各种无效证书(可能还包含自签证书)这么做的原因是为了避免中间人攻击。而出现这个错误的时候,是没办法正确处理 manifest的,所以缓存功能失效了。

所以在停止了对http Application Cache 支持的时候,没有用户信任的证书,就没法使用这个功能了。