Set the scene
A community group tracks repairs in an offline web app on a shared laptop. It opens without Wi-Fi for months, then a new volunteer clears site data while troubleshooting another service and the log disappears.
Start by giving the example a reliable end point. Say what someone needs to be able to do when they walk away, and identify the person or device involved in the handoff. This sounds simple until two participants mean different things by a completed task. Write the stopping point down before comparing settings or products. Use a single representative item for the first run, so a poor outcome can be traced without filtering the results of an entire afternoon.
Where the difference comes from
A website can store structured records, downloaded assets, and simple preferences using different browser mechanisms. IndexedDB is commonly used for records, while the Cache API can keep network resources for offline loading. Storage belongs to a site origin and browser profile. A browser may clear best-effort data under storage pressure, and an app cannot override deliberate deletion.
A browser application can use several layers of storage in one screen. Small preferences might go to localStorage, structured drafts to IndexedDB, and downloaded resources to Cache Storage. A file selected from disk may still be a reference to something the user controls outside that storage. Opening developer tools on a test profile can reveal the origin and kind for a record, while the application itself can show which drafts actually survive a restart. Distinguish the URL's origin, including protocol and port, from a path within the same site. A development preview and the production URL can have separate storage even when they render the same code.
Specify storage by the job of the data
Offline data deserves different policies depending on who can recreate it. Downloaded public icons can disappear and be retrieved from the publisher later. A new receipt uploaded while offline cannot necessarily be recreated. Classify each record as regenerable content, user work or account state in the design notes. Then decide who has permission to erase it, and what the interface says if storage is unavailable. A content viewer might proceed without thumbnails; an offline note must expose a clear failure if it cannot save. Test the visible behavior before settling on a storage API because the importance of a record does not change when it moves between a key-value store and a database.
Run a small trial
Find the app's export or sync feature before entering real records. Create a disposable record and photograph or write down its contents even if the app says it is available offline.
When serving a browser app from two hostnames, record which one is the authoritative origin for existing drafts and account state. A hostname migration does not automatically move a stored draft. Give readers an opportunity to export from the previous site or build a documented migration path suitable to the data involved. Do not ask people to clear the source before validating the restore. For a supported export, include an application identifier and schema version, then reject unreadable or unfamiliar input with a useful message. Test an empty export and one with both attachments and unusually long text, because an apparent success in a tiny test can hide a missing data type.
Decide what counts as evidence
Check the browser profile name, the website address, the app's last successful sync status, and where its export is saved. These identify whether a lost record was local to one profile, present on the server, or backed up as a separate file.
Suppose an offline museum guide stores six route descriptions of about 200 KB each, one 24 MB audio bundle and hundreds of small thumbnail files. A single reported usage figure might seem surprising next to the combined text size. On a test profile, delete just the optional audio through a supported control and check whether the estimate drops substantially while bookmarks and routes remain. A quota or storage estimate can be rounded and depends on the browser. Verify behavior from the reader's perspective and confirm that removing downloads causes a clear message when someone later tries to play media while offline.
On a borrowed or managed computer, find out what happens when a browsing session ends. A kiosk may discard its entire profile on sign-out, and browsers can apply different storage rules in private windows. A successful refresh in the same session is a particularly weak test on those machines. With permission, enter a disposable note, export it to an approved destination, close all browser windows, and start another session. Compare what the app recovers with what you can import from the export. If reopening the browser signs you in again, verify the note while disconnected so a fresh download cannot stand in for local recovery. Write down which browser profile and network state produced each result. For a shared device, also check where a download goes before exporting sensitive records. A directory shared with other users can make a normally sensible backup inappropriate for that particular computer.
Diagnose a bad run
An app still showing its homepage after disconnecting does not prove the records are available. Cached HTML can load while a separate request for records fails. Open a specific entry and create a test edit before counting on the app away from a connection.
Temporary browsing contexts can use storage differently, and embedded content can be partitioned by the top-level site. A sign-in preview in an embedded frame may lose an expected preference when the same person visits the application directly. Test with a separate profile rather than clearing storage on the device someone relies on. Document which data can be recreated, and require export for anything created by the user that should outlast a browser reset. An option for persistent storage can reduce eviction in some environments. It is still sensible to test a manual restore because the browser profile itself can disappear during repair or replacement.
Test a service worker update with live work
A service worker that supplies older program files may influence which storage schema the page expects. Imagine a person writing a draft in a tab that stays open through a deployment. A new tab starts the updated bundle while the old tab still has controls connected to the previous schema. Check both tabs on a disposable profile before using the upgrade path with real data. Provide a simple instruction to finish or save the old work and reload if the application cannot handle mixed versions. Export before migration when appropriate. Avoid designing a reset that restores the visible app by deleting the records the update was intended to preserve.
Check the other case
Using expendable notes, try importing an export in a different browser profile. Check whether dates, attachments, and unusual characters survive. A clean import proves more about recoverability than a download button or a size readout.
An expense tracker and a weather dashboard need different treatment. Cached forecasts can expire; personal entries may be the only record of cash purchases. A useful expense export includes dates, amounts, currency and any attached receipts that were created locally. In the weather dashboard, a timestamp and clear refresh control can make a stale cache tolerable. Make clearing data granular when the app has both roles. A remove-downloads choice should be easy to distinguish from an erase-my-drafts choice and should confirm what will be removed. On a shared machine, also review which profile can reopen a saved draft after the tab closes.
Handle persistent storage as a signal
When a browser grants a supported persistent storage request, the site's data may get different eviction treatment. The feature cannot prevent a user clearing the site, losing the computer or reinstalling the browser. An offline application can inspect whether storage is persistent and adjust its messaging, while continuing to offer a reliable export for irreplaceable work. A helpful download includes enough context to know the application version and restore contents. Test the file by importing it in a new profile with no previous state. When persistence is denied, keep ordinary online functions usable and make the consequence for offline use visible before someone accumulates a month of private notes.
What the decision gives up
Storing work locally can mean quicker access and less routine sharing, but there is more to manage if the device, storage, or profile changes. Cloud sync can make handoffs easier provided the app exposes an export and a clear retention policy.
What to do next
Keep the working profile stable, label exports with dates, and restore a small sample before treating the app as your only copy. Verify the offline path after a browser migration or a change to the app's address.
Before a change to storage structure, create a test profile with a previous release's data, including an unusual or empty record. Open the changed version, complete its migration, then export a readable record to check that the original values survived. Keep a rollback route that knows whether the old release understands the new storage. If you provide an in-app clear control, describe the scope of clearing and its effect on any sign-in or sync. A well-designed offline feature also states when a local record was saved and when a server copy last succeeded, with enough detail to explain a temporary gap.



