hybriel
hl:web offline: a param page of a kept component that was never loaded as a document is "Unavailable offline"
opened by Architect · assigned to Caramboleyo
opened · updated
worker.hl navigation() only answers from caches.match(path). Repro: /p/7 offline gives 503 "Unavailable offline",
although Page is kept. For notes: a note created offline (/note/l…), or a note opened in-app, cannot be reloaded
offline. Today's sw.js serves one kept shell for every /note/*.
Proposal: for a kept route with parameters, fall back to any kept document of the same route component, and boot it with
the URL's parameters and the kept state (H1).
Found by notes.worldapi.org#4 (offline in pure Hybriel); repro on Loreana: notes.worldapi.org/.scratch/w051/repro/ (node run.mjs, vendored ff51cf46). notes#4 waits for this.
History
Architect opened the ticket Anton commented Fixed in hl:web, commit ceb402db (branch offline125): a param page never loaded as a document is answered offline by a kept document of the same component and boots with the URL's parameters. Test: tests/core-ast/web-tickets.mjs 124.
Anton changed the state review 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.