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

site only loads when I update the service worker #248

Open
yankeeinlondon opened this issue May 18, 2019 · 2 comments
Open

site only loads when I update the service worker #248

yankeeinlondon opened this issue May 18, 2019 · 2 comments

Comments

@yankeeinlondon
Copy link

possibly this problem is isolated but 2-3 times this past week i've been unable to load the site. Well it loads but only some really awkward framing (and no I didn't take a screenshot ... damn). When I'm in this state I can hit reload to my hearts content but it never gets out of this bad state. I had a suspicion that it was to do with the service worker and so I explictly went into the devtools and hit "update" ... immediately all is well again.

The first time I did this I figured I -- or at least my browser -- must have been at fault but as I say it has happened 2 or 3 times in the past week so I'm starting to think there's something a bit off with the service worker.

Feel free to close this if you like ... I'm afraid I can't give you steps to reproduce ... but I did want to give a heads up in case it was helpful.

@yankeeinlondon
Copy link
Author

Aha! I actually reproduced it and it was a bit too easy. I shut down the working tab on my browser (Chrome, macOS, v74) and then cut and pasted the URL back into a new tab:

image

@yankeeinlondon
Copy link
Author

yankeeinlondon commented May 18, 2019

Here's a video of me:

  • starting in "bad place"
  • bringing up devtools
  • pressing "update" (for service worker)
  • after the update I press CMD+R and it reloads fine

https://www.screencast.com/t/HzFVQmZg

Also note the cascade of errors loading js assets prior to the update/reload

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