PageSourceSearch

https://conradpaint-ankageqk.manus.space/sw.js

js conradpaint-ankageqk.manus.space collected 2026-10-03 05:00:54 UTC 970 bytes, 25 lines download raw bytes

1const CACHE_NAME = "conrad-hansen-permanent-v1";
2const APP_SHELL = ["/", "/reviews", "/manifest.webmanifest"];
3
4self.addEventListener("install", (event) => {
5  event.waitUntil(caches.open(CACHE_NAME).then((cache) => cache.addAll(APP_SHELL)));
6  self.skipWaiting();
7});
8
9self.addEventListener("activate", (event) => {
10  event.waitUntil(caches.keys().then((keys) => Promise.all(keys.filter((key) => key !== CACHE_NAME).map((key) => caches.delete(key)))));
11  self.clients.claim();
12});
13
14self.addEventListener("fetch", (event) => {
15  if (event.request.method !== "GET") return;
16  if (event.request.mode === "navigate") {
17    event.respondWith(fetch(event.request).catch(() => caches.match("/")));
18    return;
19  }
20  event.respondWith(caches.match(event.request).then((cached) => cached || fetch(event.request).then((response) => {
21    const copy = response.clone();
22    caches.open(CACHE_NAME).then((cache) => cache.put(event.request, copy));
23    return response;
24  })));
25});

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.