Please enable JavaScript.
Coggle requires JavaScript to display documents.
Service Worker ( going offline ) - Coggle Diagram
Service Worker ( going offline )
characteristics
beyond the tab being closed
beyond somebody navigating away to another page
like zombie living outside of your tab
clone messages
is special type of Web Worker
can call Network Worker (a little more accurate)
control by cache api for your own
use-cases
use Google Docs then connection going down, it can save editing locally. When the connection is on, web display us message to save editing online
be able to intersect outbound requests from a website
then we can transparent URL rewriting
then we can programmatically create content that's responded to from client
example: send AJAX request, we intersect and return artificially response. Then web page doesn't know it's artificially response
example: send caching so user doesn't know they are offline because they still get HTML and AJAX back
understand push notification video
resource:
https://serviceworke.rs/
life cycle
starting...
waiting
activated