PageSourceSearch

https://slive.ai/sw.js

js slive.ai collected 2026-10-05 12:39:59 UTC 849 bytes, 21 lines download raw bytes

1// Minimal service worker for PWA installability.
2//
3// A registered service worker with a fetch handler is one of the browser's
4// requirements to offer the "install app" prompt. This worker intentionally
5// does NOT cache any responses: StellarLive is multi-tenant and auth-gated, so
6// caching could leak data across organizations or serve content to a user who
7// has already signed out. Every request passes straight through to the network.
8
9self.addEventListener("install", () => {
10  self.skipWaiting();
11});
12
13self.addEventListener("activate", (event) => {
14  event.waitUntil(self.clients.claim());
15});
16
17self.addEventListener("fetch", () => {
18  // Pass-through by design: no respondWith() means the browser performs its
19  // normal network fetch. Do not add caching here without a per-tenant,
20  // per-session strategy (see the note above).
21});

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.