Comments (9)
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.
from open-sauced.
Hey, thanks for adding this issue, back in v0.42.5
the service worker wasn't correctly checking for new versions, hence why some assets on that redirect are not loading. Refreshing the page once without cache or deleting local *.opensauced.pizza
should fix the error locally. Unfortunately, we cannot retroactively solve v0.42.5
but the problem is solved, currently. Do you think a page in the docs obout this issue and how to clear the session would make sense?
cc @bdougie had this issue on stream once as well, what do you think?
from open-sauced.
Thanks for the quick reply @0-vortex.
I'm not fully sure if the page in the docs is a needed. I have the feeling that I'm one of the handful of people who will encounter this issue.
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.
from open-sauced.
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.
from open-sauced.
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()
} })
from open-sauced.
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 SW is ready to handle offline requests.
message in the console :D
from open-sauced.
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?
from open-sauced.
Unfortunately I am not able to test this behaviour because I already removed my service worker.
Is there a way to visit an old version of the deployment to activate the old SW?
from open-sauced.
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! 🍕
from open-sauced.
Related Issues (20)
- Implement Post Hog into onboarding buttons HOT 2
- Bug: Posthog not sending analytics data HOT 3
- Docs: Add Step 3 of Onboarding to Open Sauced HOT 1
- Bug: production site is down HOT 3
- Bug: When adding brob/plug11ty.com "not valid" error HOT 14
- Bug: Fork button doesn't know I already have a fork HOT 5
- Bug: Same repository shows up twice in Repo Recommendation HOT 1
- Bug: Tracking the same repository twice HOT 1
- Bug: Forking doesn't work HOT 4
- Bug: added the same repo twice to my app.opensauced.pizza dashboard HOT 3
- Bug: github-actions bot has outdated link for Contributing Guide HOT 4
- Feature: add artifact maintenance and timeouts HOT 1
- Bug: An error occurs when attempting to load admin status
- Bug: from DW
- Feature: Remove the unmaintained Squoosh-CLI from the project HOT 2
- Feature: OpenSauced the final form HOT 2
- Bug: Not compatible with node v18
- Feature: Planned Archival of this repo HOT 1
- Bug: Cannot login to Github With Firefox or Brave HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-sauced.