缓存清单将被删除?

Cache manifest is going to be removed?

我将 HTML5 缓存清单用于我的网络应用程序的离线 mod,但我看到此功能将从 HTML5 标准中删除。

HTML 标准是这样说的:

This feature is in the process of being removed from the Web platform. (This is a long process that takes many years.) Using any of the offline Web application features at this time is highly discouraged. Use service workers instead.

有人知道更多信息吗?使用此功能继续使用我的网络应用是否安全?

浏览器 still support the offline Web applications (cache manifest) 但浏览器供应商没有兴趣继续永远支持它。他们计划在平台添加更好的机制后取消支持。

也就是说,正如您从 HTML 标准中引用的注释中所指出的那样,浏览器需要数年时间才能取消对缓存清单的支持。所以您可以继续使用该功能, 尽管如注释所示,非常不鼓励这样做。

我们鼓励您使用缓存清单的替代方法是 Service Worker—in particular, the Service Worker Cache and CacheStorage 接口。这些为脱机 Web 应用程序提供了更强大的解决方案。

相比之下,缓存清单功能有很多问题和局限性 - 其中一个事实是,当问题发生时,您可能很难解决问题。