Tech Broo
Software and Apps

The offline test every web app should pass

Opening a cached page is only the first step. The harder question is what happens to the work you do on it.

Illustration of a subway passenger using a tablet without a connection.

A web app passes an offline test when people can finish a defined task, see what was saved, and tell what happens when the connection returns. If a traveler can open a cached timetable but none of the route details, the app has saved a page, not the task.

Decide what should work offline

Start with one real action. A field technician might need to open a previously downloaded work order, check off an inspection, and save a note. The app can reasonably require a connection to retrieve an order it has never downloaded or notify a supervisor. Tell users about those limits before they go offline.

A service worker can return a saved response when the network is unavailable. Chrome’s web app caching guide explains how Cache Storage holds those responses. An unfinished inspection is different: the app needs to store changes and track whether the server has received them. If an offline record can go stale, show when it was last refreshed.

Run the test from start to finish

1. Prepare while connected. Open a work order using a test account and confirm it downloaded. Disconnect before starting the edit.

2. Complete and reopen the task. Save a note, close the app, then reopen it offline. The note should remain, and the app should distinguish “saved on this device” from “submitted.” In a separate fresh session, confirm the fallback does not imply that uncached records are available.

3. Reconnect, then interrupt the sync. Make sure the app retries safely and the server gets one record, not duplicates. Test edits made from two devices and confirm changes are not silently discarded.

4. Test expired access. Check what stays visible if a session expires on a shared device. A local device unlock or passkey sign-in does not by itself establish a new server session offline.

The test passes when users can recover their draft after reopening and know exactly which changes reached the server. For implementation details, see MDN’s guide to offline and background operation.

Discussion

  1. […] guidance recommends phishing-resistant FIDO authentication. If you build web apps, our offline app checklist explains what to test when a network connection drops after […]

  2. […] unreliable Wi-Fi, a clearly dated saved copy may matter more than a reminder feature. Tech Broo’s offline web app checklist covers what to test if that becomes part of the […]

Leave a comment

Your email address will not be published. Required fields are marked *

Related stories

Scroll to Top