@lelantos-org/sdk / core / requestPersistentStorage
Function: requestPersistentStorage() โ
ts
function requestPersistentStorage(): Promise<boolean>;Defined in: @lelantos-org/sdk/dist/core/storage.d.ts:13
Ask the browser to exempt this origin's storage from eviction.
Worth calling once at startup on any site that proves in the browser: WebKit evicts Cache API storage after ~7 days without a visit, which silently restores the full artifact download. It equally protects a persisted note or tree store.
Resolves false when unsupported or denied. Chrome grants it on an engagement heuristic rather than a prompt, so false is informational rather than an error โ there is nothing to retry or report.
Returns โ
Promise<boolean>