跳转到内容

持久存储

持久存储navigator.storage.persist() 请求浏览器保护存储的数据 (IndexedDB、Cache API、Service Worker 缓存)免受自动清除。没有持久化的情况下, 浏览器可能在存储压力下清除站点数据。

Browser / PlatformSupportSinceConfidenceSourceNotes
Chrome (Desktop)✅ yes55highref
Chrome (Android)✅ yes55highref
Edge (Desktop)✅ yes79highref
Firefox (Desktop)✅ yes57highref
Firefox (Android)✅ yes57highref
Safari (macOS)✅ yes15.2highref
Safari (iOS)✅ yes15.2highref
Samsung Internet✅ yes6.0mediumref

Source: spec · MDN · Last verified 2026-07-12 · Confidence: high

← 返回兼容性浏览器。