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

Reload page if new version of app is deployed #856

Merged
merged 3 commits into from
Sep 28, 2022

Conversation

Alex-Tideman
Copy link
Contributor

To prevent stale files (i.e. new deploy and old js files are no longer available but user tries to fetch them), poll every 10 seconds for new application version and reload page if it detects new version.

This PR will offer two options for navigation errors in the router. These errors occur for example if a new version of the site is deployed while being open in a browser. The JS files for pages might have changed and so has the filename. The previous page JS files, that the router still knows about, will give an import error 500 when trying to navigate to that page. For more detail on the problem, see sveltejs/kit#87.

sveltejs/kit#3412

@vercel
Copy link

vercel bot commented Sep 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
holocene ✅ Ready (Inspect) Visit Preview Sep 28, 2022 at 1:59PM (UTC)
ui ✅ Ready (Inspect) Visit Preview Sep 28, 2022 at 1:59PM (UTC)

@cypress
Copy link

cypress bot commented Sep 28, 2022



Test summary

68 0 0 0


Run details

Project Temporal UI
Status Passed
Commit a5be0f381c ℹ️
Started Sep 28, 2022 2:00 PM
Ended Sep 28, 2022 2:03 PM
Duration 03:19 💡
OS Linux Ubuntu - 20.04
Browser Chrome 105

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@Alex-Tideman Alex-Tideman merged commit fb33647 into main Sep 28, 2022
@Alex-Tideman Alex-Tideman deleted the application-versioning branch September 28, 2022 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants