Widely available Supported across all major browsers. Safe to use in production.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
55
79
57
15.2
55
15.2

The Navigator.storage read-only property returns the singleton StorageManager object used to access the overall storage capabilities of the browser for the current site or app. The returned object lets you examine and configure persistence of data stores and learn approximately how much more space your browser has available for local storage use.

55
79
57
15.2
55
15.2
permission_persistent-storage

`persistent-storage` permission

71
79
53
71

The estimate() method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (usage), and how much space is available (quota).

61
79
57
17
61
17

The persist() method of the StorageManager interface requests permission to use persistent storage, and returns a Promise that resolves to true if permission is granted and bucket mode is persistent, and false otherwise. The browser may or may not honor the request, depending on browser-specific rules. (For more details, see the guide to Storage quotas and…

55
79
57
15.2
55
15.2

The persisted() method of the StorageManager interface returns a Promise that resolves to true if your site's storage bucket is persistent.

55
79
57
15.2
55
15.2

The storage read-only property of the WorkerNavigator interface returns the singleton StorageManager object used to access the overall storage capabilities of the browser for the current site or app. The returned object lets you examine and configure persistence of data stores and learn approximately how much more space your browser has available for local…

55
79
57
15.2
55
15.2
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Use cases

  • Using Storage manager

    The StorageManager interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.

Cautions

  • May not be supported in older browsers.

Implementation notes

  • Some APIs require a secure context (HTTPS) or user activation. Check the requirements before use.