Cache manifest is going to be removed?

淺唱寂寞╮ 提交于 2019-12-13 05:47:12

问题


I use the HTML5 cache manifest for the offline mod of my web app but I saw that this feature will be removed of the HTML5 standard..

The HTML Standard says this:

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.

Someone has more info about it? Is it safe to continue my web app with this feature?


回答1:


Browsers still support the offline Web applications (cache manifest) but browser vendors are not interested in continuing to support it forever. They plan to remove support after a better mechanism is added to the platform.

That said, as indicated in the note you cite from the HTML Standard, it will be years before browsers are able to remove support for cache manifests. So it’s possible for you to continue using the feature, though as the note indicates, doing that is highly discouraged.

The alternative to cache manifests that you are encouraged to use instead is Service Worker—in particular, the Service Worker Cache and CacheStorage interfaces. Those provide a much more robust solution for offline Web applications.

The cache-manifest feature, in contrast, has many problems and limitations—among them the fact that it can be very hard for you to troubleshoot problems with it when they occur.



来源:https://stackoverflow.com/questions/32716764/cache-manifest-is-going-to-be-removed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!