-
-
Notifications
You must be signed in to change notification settings - Fork 915
Bug: When pressing the opensauced logo to go to the homepage I get sent to an old version #1436
Comments
Hey, thanks for adding this issue, back in cc @bdougie had this issue on stream once as well, what do you think? |
Thanks for the quick reply @0-vortex. But since this repository is based on getting people introduced with opensource contributions, I am not gonna shoot down an opportunity for someone in the very basics of opensource contributions. |
Yeah, we need to clear the cache aggressively for users. The site was getting 2300 uniques a month before the change, so I imagine a not insignificant amount of people will encounter this. |
The solution for anyone who encounters this is to unregister the service worker. We can work on a fix to automate this, but for now, I think this is a viable solution for the 165 (out of 2300 uniques referenced above) active users. Be sure to refresh after you click ungregister. |
I have added the following code to a Netlify snippet injection. It's deployed, just need someone to confirm it works now. navigator.serviceWorker.getRegistrations().then(function(registrations) {
for(let registration of registrations) {
registration.unregister()
} }) |
This makes the service worker stop working for everyone - with no registered resources you would never have the app available offline, the issue is visible by the lack of |
My reason for putting it in netlify was to fix it now and remove it a month or so. I would rather have the sw not work than get pings that the site is not working entirely a user. Path of least resistance? |
Unfortunately I am not able to test this behaviour because I already removed my service worker. |
Closing this as won't fix - we might merge app and hot and when that happens, this could be corrected, however might not happen this year! 🍕 |
Describe the bug
This should be the latest version of the homepage as shown below.
e
Steps to reproduce
Affected services
opensauced.pizza, docs.opensauced.pizza
Platforms
Desktop
Browsers
Other (add additional context)
Environment
Production
Additional context
Brave browser V1.38.111
Code of Conduct
Contributing Docs
The text was updated successfully, but these errors were encountered: