PageSourceSearch

https://www.duftgenuss.com/sw.js

js duftgenuss.com collected 2026-10-05 11:35:26 UTC 1,081 bytes, 50 lines download raw bytes

1var cacheName = 'coachy-pwa-v1';
2var filesToCache = [];
3
4/* Start the service worker and cache all of the app's content */
5self.addEventListener('install', function(e) {
6  e.waitUntil(
7    caches.open(cacheName).then(function(cache) {
8      return cache.addAll(filesToCache);
9    })
10  );
11});
12
13/* Delete cache when service worker is activated */
14self.addEventListener('activate', (event) => {
15  event.waitUntil(
16    caches.keys().then(async (keys) =>
17      Promise.all(
18        keys.map((key) => {
19          if (key !== cacheName) {
20            return caches.delete(key);
21          }
22        })
23      )
24    )
25  );
26  self.clients.claim();
27});
28
29
30/* Serve cached content when offline */
31self.addEventListener('fetch', function(event) {
32
33  /* !! otherwise it produces errors on uploading videos/files !! */
34  if (event.request.method !== "GET") {
35    return;
36  }
37  if (event.request.mode !== 'navigate') {
38    return;
39  }
40  return;
41
42  /*
43  event.respondWith(
44    caches.match(event.request).then(function(response) {
45      return response || fetch(event.request);
46    })
47  );
48  */
49});
50

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.