- [Instructor] After we have registered the Service Worker,…in the future we usually want to change it with new code,…so we need to think about this for a minute.…When the Service Worker is going to be updated…because the Service Worker is installed in users' devices.…It works when the user is offline.…So, the browser has a checking algorithm…that is basically a byte-by-byte comparison…in the service worker file.…Some browsers are also making that byte-by-byte comparison…in all the scripts used by ImportScripts.…
We can force an update from develop tools…and also the browser will fire automatically…that algorithm at some points…but it can also be fired by an API,…for example, we can have a user interface…with an update button that will force the browser…to make the check at that point.…The API is pretty simple.…When we have the registration object,…we just call update and that will force the browser…to try to go and run the checking algorithm.…
So, the algorithm is different per browser…and per version.…In the worst case scenario,…
- 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.