Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dixhuit opened this issue Jul 16, 2024 · 0 comments
Open

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

dixhuit opened this issue Jul 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dixhuit
Copy link
Owner

dixhuit commented Jul 16, 2024

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.

@dixhuit dixhuit added the enhancement New feature or request label Jul 16, 2024
@dixhuit dixhuit added this to the 0.65.0 milestone Jul 16, 2024
@dixhuit dixhuit changed the title Trigger a page reload if a new version is available Trigger a page refresh if a new version is available Jul 16, 2024
@dixhuit dixhuit removed this from the 0.66.0 milestone Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant