iPX does not open or read without a connection #389
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With no network (a plane, a tunnel, the phone in a basement) the home-screen app shows nothing: there is no service worker, and the lists the page fetched, full text included, live only in its memory. Wanted: the page opens offline, the lists already fetched (All, Unread, the feeds preloaded or opened) can be read with their pictures, and reads, flags and positions made offline are kept and sent when the connection returns. Cleared on sign-out.
Done in
af69b69, deployed in ipx and ipx-web 2026-11-07 01:00: a service worker (web/sw/sw.ts) keeps the page and every API read, network first; pictures in unread items' text through /api/art (which now accepts addresses ipx has sent in item text), 200 MB at most; reads, flags and positions made offline wait in an outbox and go in order when back. Cleared on sign-out and on a change of account. Browser tests: opening offline with the list, text and picture, the read sent once back; a picture online still from its publisher; sign-out clearing it.