PageSourceSearch

https://servicios.ucsf.edu.ar/docentes/sw.js

js ucsf.edu.ar collected 2026-09-26 04:38:14 UTC 996 bytes, 24 lines download raw bytes

1//minimalistic worker with the only goal to fulfill Chrome/Edge's PWA install requests
2//no service worker caches are used, only the browser cache
3
4let _isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
5console.log('Service Worker loading, isSafari:' + _isSafari);
6
7self.addEventListener('activate', function(event) {
8    console.log('Service Worker activate');
9    event.waitUntil(self.clients.claim());
10});
11
12self.addEventListener('install', function(event) {
13    console.log('Service Worker install');
14    event.waitUntil(self.skipWaiting()); // Activate worker immediately
15});
16
17self.addEventListener('fetch', function(event) {
18    console.info('Service Worker fetch: ' + event.request.url + ', mode: ' + event.request.mode);
19    if (_isSafari) {
20        //in case one wants to use the service worker too for Safari
21        //it needs to explicitly request from network when being offline
22        event.respondWith(fetch(event.request));
23    }
24});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.