- [Instructor] Back to our code…in video 10 of chapter two,…it's time to talk about unregistering service worker.…On most of the browser, your service worker…will leave and be activated mostly forever.…So it's not going to disappear automatically.…Safari is the only browser that, right now,…might delete and unregister your service worker…after a few weeks of inactivity.…So if the user is not going back to your website,…Safari might delete your service worker.…
But let's say that, in the future,…maybe in a year, you don't want the service worker…anymore in your current scope.…Probably you are thinking, well, let's delete the file.…So let's take the service worker in the server…and delete the file.…And then, when the browser is doing…the check algorithm, it will verify that…there is no service worker in the server, and will delete…the service worker registration in the client.…Well, that's not how it works.…If you delete the file in the server,…the client will never unregister the service worker.…
Because the whole idea of the service worker…
- Service worker life cycle
- Registering service workers
- Handling service worker events
- Updating service workers
- Acting as a network proxy
- Configuring cache storage
- Communicating with clients
- Optimizing web performance
Skill Level Advanced
Web Portfolio Projects: Binding and Propagationwith Leigh Lawhon1h 9m Intermediate
1. A New Citizen for the Web
2. Work with Service Workers
3. Acting as a Network Proxy
4. Cache Storage
5. Work with APIs in the Service Worker
6. Tips and Tricks for Web Performance
Next steps1m 55s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.