PageSourceSearch

https://tagebuch.dreamteam.swiss/serviceWorker.js

js dreamteam.swiss collected 2026-10-06 17:35:25 UTC 799 bytes, 33 lines download raw bytes

1let CACHE_NAME = 'my-cache';
2let urlsToCache = [
3  'assets/font-awesome.css',
4  'assets/foundation.css',
5  'assets/variables.css',
6  '/assets/fonts/fontawesome-webfont.woff2?v=4.7.0',
7  '/assets/img/logo.svg',
8];
9
10self.addEventListener('install', function (event) {
11  // Perform install steps
12  event.waitUntil(
13    caches.open(CACHE_NAME)
14      .then(function (cache) {
15        console.log('Opened cache');
16        return cache.addAll(urlsToCache);
17      })
18  );
19});
20
21self.addEventListener('fetch', function (event) {
22  event.respondWith(
23    caches.match(event.request)
24      .then(function (response) {
25        // Cache hit - return response
26        if (response) {
27          return response;
28        }
29        return fetch(event.request);
30      }
31      )
32  );
33});

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.