dixhuit / unitcrunch-issue-tracker

Issue tracker for UnitCrunch.
https://www.unitcrunch.com
5 stars 0 forks source link

Trigger a page refresh if a new version is available #95

Open dixhuit opened 3 months ago

dixhuit commented 3 months ago

On detection of initial page activity, request the latest app version from the backend. If the returned value is greater than the client's current value, force a page refresh (which in turn will get the latest app version and trigger any required updates).

Consider caching the returned value and checking that first. Bust the cache every so often (30mins?).

UPDATE: Probably better to just upgrade UC to be a PWA and use service worker caching.