缓存清单将被删除? [英] Cache manifest is going to be removed?

查看:107
本文介绍了缓存清单将被删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的web应用程序的离线mod使用了HTML5缓存清单,但是我看到这个功能将被移除HTML5标准。


$ b HTML标准这样说:


这个特性正在从Web平台上移除。
(这是一个需要很多年的漫长过程。)此时使用任何
脱机Web应用程序功能都非常令人沮丧。
使用服务人员。


有人有关于它的更多信息?使用此功能继续我的网络应用程序安全吗?

解决方案

浏览器仍然支持离线的Web应用程序(缓存清单),但浏览器供应商无意继续持续支持它。他们计划在将更好的机制添加到平台后取消支持。



也就是说,正如您在HTML标准中引用的注释中指出的那样,浏览器能够取消对缓存清单的支持。因此,您可以继续使用该功能,
,但请注意,这样做是非常令人沮丧的。


您鼓励使用缓存清单的替代方法是服务工作者 - 特别是服务工作者缓存 CacheStorage 接口。这些为离线Web应用程序提供了一个更强大的解决方案。



cache-manifest特性相反,有许多问题和局限性 - 其中包括它可以非常难以在发生问题时排除问题。


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?

解决方案

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.

这篇关于缓存清单将被删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆