- [Instructor] We have already mentioned…that every service worker has one scope.…We know that the scope, it's basically a domain,…a port number, and also a path,…that can also be the root folder.…So, the service worker will manage everything…that happens, within that scope.…So, for example, if the scope is https://linkedin.com,…then here we can see several examples…that will be managed by the service worker.…
So, linkedin.com, so the home page,…will be managed by the service worker,…the same as /about, or /assets/static/terms.pdf,…or anything inside that domain.…But if we are going to a different port,…such as linkedin.com:1800,…that's not managed by that service worker,…because it's a different scope.…The same happens if there is a subdomain,…such as learning.linkedin.com.…It's a completely different scope.…
If you define the scope as a subfolder of your domain,…such as linkedin.com/pwa, then now,…the homepage of linkedin.com…or /about are not part of that scope.…Only files or subfolders inside…that pwa folder will be part of that scope,…
- 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 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.