Changes for page LiveTableServiceWorker
Last modified by bougault on 2022/03/22 17:19
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,1 +1,0 @@ 1 -Main.WebHome - Content
-
... ... @@ -1,17 +1,0 @@ 1 -{{velocity}} 2 -$response.addHeader('Service-Worker-Allowed', '/') 3 -$response.setContentType("text/javascript") 4 -self.addEventListener("install" , evt => { 5 - console.log(evt); 6 -}); 7 - 8 -self.addEventListener("activate" , evt => { 9 - console.log(evt); 10 - clients.claim(); 11 -}); 12 - 13 -self.addEventListener("fetch" , evt => { 14 - console.log(evt); 15 -}); 16 - 17 -{{/velocity}}
- XWiki.JavaScriptExtension[0]
-
- Caching policy
-
... ... @@ -1,0 +1,1 @@ 1 +long - Code
-
... ... @@ -1,0 +1,15 @@ 1 +self.addEventListener("install" , evt => { 2 + evt.waitUntil(caches.open("main_cache").then(cache => cache.addAll(["/", "/something"]))); 3 + 4 + self.skipWaiting(); 5 +}); 6 + 7 +self.addEventListener("activate" , evt => { 8 + console.log(evt); 9 + clients.claim(); 10 +}); 11 + 12 +self.addEventListener("fetch" , evt => { 13 + console.log(evt); 14 +}); 15 + - Name
-
... ... @@ -1,0 +1,1 @@ 1 +eu.hbp.collaboratory.apps.livetableserviceworker