- I'm in the serviceworker.js file…and now we have a response that is basically HTML.…So now it's time to talk about the request.…So the request that we are receiving is part…of a request constructor that we can create objects manually…if we want, but in this case,…we are going to take the data from the request.…and we're going to show that data in our dynamic,…on the fly HTML that we are generating.…We already know that we have the url there,…so let's see what else do we have.…
I'm going to create the list here.…And we're going to add a couple of lis.…For example, we can read the current cache information.…For example, to know if the data came from the cache or not,…or for example if it's a reload operation,…so if the user has to reload this,…like press the reload button,…that means it doesn't want the cache.…We can also read, for example, credentials.…They will give us information…about how the request is handling credentials in terms of,…say, more actions, if its sending…or not the HTTP credentials.…
We can also check all the headers,…
- 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.