An open page keeps running the old version after ipx-web is deployed #388

Closed
opened 2026-11-06 16:00:15 -08:00 by rays · 1 comment
Owner

The live-update stream reconnects after a deploy and the lists catch up (events.ts), but the page's own script stays the one it loaded: an open tab, or the iPhone home-screen app, runs the old app.js until reloaded by hand. On reconnecting, the page should see whether / now names a different app.js?v=, reload itself when nothing is playing, no dialog is open and nothing is half-typed, and otherwise offer a reload in a toast.

The live-update stream reconnects after a deploy and the lists catch up (events.ts), but the page's own script stays the one it loaded: an open tab, or the iPhone home-screen app, runs the old app.js until reloaded by hand. On reconnecting, the page should see whether `/` now names a different `app.js?v=`, reload itself when nothing is playing, no dialog is open and nothing is half-typed, and otherwise offer a reload in a toast.
rays added the enhancement label 2026-11-06 16:00:15 -08:00
Author
Owner

Done in 742f769: back after a drop of the live stream, the page fetches / without the cache and compares the app.js it names with its own. With nothing to lose it reloads and opens the item that was open again (kept whole in sessionStorage); while something plays, a dialog is open, a search is set or a field is typed in, a toast offers Reload. Deployed in ipx-web 2026-11-07.

Done in 742f769: back after a drop of the live stream, the page fetches / without the cache and compares the app.js it names with its own. With nothing to lose it reloads and opens the item that was open again (kept whole in sessionStorage); while something plays, a dialog is open, a search is set or a field is typed in, a toast offers Reload. Deployed in ipx-web 2026-11-07.
rays closed this issue 2026-11-06 16:05:34 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#388