https://github.com/persianturtle/service-worker-issue
Reproducing a service worker related issue
https://github.com/persianturtle/service-worker-issue
Last synced: 27 days ago
JSON representation
Reproducing a service worker related issue
- Host: GitHub
- URL: https://github.com/persianturtle/service-worker-issue
- Owner: persianturtle
- License: mit
- Created: 2022-05-11T00:54:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-15T22:37:09.000Z (about 4 years ago)
- Last Synced: 2025-10-10T17:42:54.813Z (8 months ago)
- Language: HTML
- Size: 1.23 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reproducing a Service Worker related issue
The issue is that `self.skipWaiting()` seems to have no effect when Firebase's Firestore is being used (on Chrome version 101.0.4951.54).
Steps to reproduce:
1. Run `npm start` and visit `localhost:5050`
2. Notice that the Service Worker is installed
3. Update the `currentCacheName` in `public/sw.js`
4. Refresh `localhost:5050`
5. Click "OK" on the confirm modal
6. Notice that the new Service Worker is not installed
7. Uncomment the commented lines in the Service Worker's `fetch` event to `return` early from the cross origin requests
8. Repeat steps 2-5
9. Notice that the new Service Worker is installed
Video Overview: https://drive.google.com/file/d/1M3HvvVll8T38i2YVGAjaOsovkYyCvGlk/view?usp=sharing