Safari上的IndexedDB是否保证是持久的? [英] Is IndexedDB on Safari guaranteed to be persistent?

查看:286
本文介绍了Safari上的IndexedDB是否保证是持久的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类似于此问题,是IndexedDB保证是持久的? IE.如果设备内存不足,Safari不会回收磁盘空间.

Similar to this question, is IndexedDB guaranteed to be persistent ? ie. Safari will not reclaim disk space if the device is low on memory.

推荐答案

Safari浏览器具有"

Safari have "No Eviction policy", meaning it will not automatically clean the IndexDB on low disk pressure, without user doing it manually.

IndexDB是快速发展的功能之一,您可以期望在没有公告的情况下随时有不同的驱逐策略.您应该始终使用后备选项进行构建.

IndexDB is one of the fast evolving feature and you can expect to have a different eviction policy any time with no announcement. You should always build with fall back options.

Chrome浏览器具有明确的永久存储选项,这将确保无需驱逐,只要用户批准永久存储即可,并且基于Safari在实施PWA功能后追随Chrome的往绩,我们可以期待Safari在同一时间做(尽管它花了很多年编写了非常糟糕的文档).

Chrome has explicit persistent storage option which will guarantee no eviction, on user approval for persistent storage and we can expect Safari to do the same sometime, based on their track record of following Chrome in implementing PWA features(though its taking years with super bad documentation).

这篇关于Safari上的IndexedDB是否保证是持久的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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