Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.oninstall = function (e) {
- // populate cache
- // download all resources needed for offline experience
- }
- self.onactivate = function (e) {
- // cleanup like managing cache
- }
- self.onfetch = function (e) {
- // deal with network traffic
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement