PageSourceSearch

https://libscie.org/worker.js

js libscie.org collected 2026-10-03 21:39:24 UTC 857 bytes, 31 lines download raw bytes

1self.addEventListener("fetch", (event) => {
2  if (!event.request.url.includes("?local")) return;
3  event.respondWith(
4    caches.open("minilink-user-assets").then(async (cache) => {
5      return cache
6        .match(event.request)
7        .then((response) => {
8          if (response) {
9            return response;
10          }
11          return fetch(event.request.clone());
12        })
13        .catch((error) => {
14          console.log(error);
15          throw error;
16        });
17    }),
18  );
19});
20self.addEventListener("activate", function (event) {
21  event.waitUntil(self.clients.claim());
22});
23
24self.addEventListener("install", () => {
25  // The promise that skipWaiting() returns can be safely ignored.
26  self.skipWaiting();
27
28  // Perform any other actions required for your
29  // service worker to install, potentially inside
30  // of event.waitUntil();
31});

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.