Service Worker 是要替代 Appcache 还是与之共存?

Is Service Worker intended to replace or coexist with Appcache?

ServiceWorker intended to replace Appcache,还是打算两者共存?换句话说,appcache 即将被弃用吗?

作为缓存工具,它将与appcache共存。 Appcache 几乎适用于所有浏览器。

但是 service worker 是一个坚实的基础,可以允许新的用法,如推送(即使浏览器在后台)、地理围栏或后台同步。

Blink 的 Service Worker 团队热衷于弃用 AppCache(我们将按照惯例 intent to deprecate process). We believe that Service Worker is a much better solution. Also, it should be pretty easy to offer a drop-in replacement for AppCache built on top of SW. We'll start by collecting usage metrics 进行一些推广。

AppCache 和 Service Worker 应该可以毫无问题地共存,因为通过 AppCache 为不支持 Service Workers 的浏览器提供离线支持是一个有效的用例。 @flo850 如果它不起作用,请通过 filing a bug.

告诉我们

我必须说 Services Worker is not only the replacement for AppCache, but it’s far more capable. AppCache 无法部分更新,逐字节清单比较来触发更新似乎很奇怪,并且有几个用例导致安全性和可怕的可用性问题.

Even Chrome and Firefox are planning to stop support for AppCache in the near future. 既然 Service Worker 得到了 Chrome、Opera 和 Firefox.Also 的支持,来自 Microsoft 和 Safari 的声音在实施和考虑方面都是积极的。