Service Worker 是用来控制同一个 origin 下的缓存啊网络请求啥的,它被用来代替 appcache 。 Push API 是 Service Worker 其中的一个功能。 依赖于 service worker ,这意味着他们都需要在 https origin 下才能使用。