Skip to content

Reset

Clears the installed service worker and its caches, the escape hatch for a client stuck on a stale cached build.

Functions

resetAppData()

function resetAppData(): Promise<void>;

Defined in: src/shared/pwa/reset.ts:14

Unregisters every service worker for this origin, deletes every Cache Storage bucket, then reloads so the next load fetches a fresh index and assets. Leaves localStorage intact so the profile and preferences survive.

Returns

Promise\<void>

Resolves after the caches are cleared, just before the reload.