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

There is a delay before check the latest version #670

Open
zyxkad opened this issue Feb 26, 2024 · 0 comments
Open

There is a delay before check the latest version #670

zyxkad opened this issue Feb 26, 2024 · 0 comments

Comments

@zyxkad
Copy link

zyxkad commented Feb 26, 2024

What did I do

  1. Register PWA as autoUpdate, and register service worker with immediate: true
  2. Load the page once on the client
  3. Change something in the page, and update the change to the server
  4. Reload the client

Actual Behaviour

After the page loaded, the client will wait for a second, then request sw.js and reload to update to the latest content.

Expect Behaviour

The client should not have any delay. It should immediately check sw.js after loaded.

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

No branches or pull requests

1 participant