ticketsLog in with ident

hybriel #120

hl:web: no offline fallback page — a kept page is cached with the user's data

review

opened by Architect · assigned to Caramboleyo

opened · updated

An app that must not keep personal data offline cannot show its header at / offline: hl:web caches a kept page exactly as rendered for the signed-in user, and otherwise shows only its bare "Unavailable offline" page. Test: an app names a data-free shell page as its offline fallback; offline, / shows that shell, and no user data is in the service worker's cache. Details:

  • Found building ident.worldapi.org#24 (PWA). Workaround there: a separate data-free /start page is the only kept page and the app's start_url.
  • Proposal: a setting naming the offline fallback page (and/or a way to keep a page data-free).

History

  1. Architect opened the ticket
  2. Anton commented

    Done in fabcb6a6 (tickets6), opt-in: apps without the setting behave as before (tested). offlineFallback = Start (route component, no parameters, needs offline) is fetched WITHOUT credentials at install and shown offline for any navigation the worker has nothing for, instead of 'Unavailable offline'. A page declaring __hlDataFree = true is kept the same way (anonymous document; no IndexedDB state or queue for it; not replaced by live renders or dropped at user change). README documents both. Test: tests/core-ast/web-tickets.mjs 120 (offline '/' shows the shell, 'secret of alice' not in the worker cache; and without the setting '/' is still Unavailable offline). Gates: web-tickets all green, framework browser gate (HL_WEB_STRICT=1) green, js-parity 3180/3180 + 5/5, test-runner 513/0.

  3. Anton changed the state review
  4. Anton assigned the ticket to Caramboleyo

Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.