PageSourceSearch

https://usasoftballofvirginia.com/sw.js

js usasoftballofvirginia.com collected 2026-09-28 19:01:38 UTC 826 bytes, 21 lines download raw bytes

1// RegisterPlay PWA service worker.
2//
3// Intentionally NETWORK-ONLY. It exists solely to satisfy the browser's PWA
4// installability requirement (a registered SW with a fetch handler). It caches
5// NOTHING, so it never conflicts with the nginx chunk-cascade versioning
6// (the v-1/v-2/v-3 rotation in the Dockerfile). Do not add offline/app-shell
7// caching here without coordinating with that rotation, or stale clients will
8// be served mismatched hashed chunks.
9
10self.addEventListener('install', () => {
11	self.skipWaiting();
12});
13
14self.addEventListener('activate', (event) => {
15	event.waitUntil(self.clients.claim());
16});
17
18self.addEventListener('fetch', () => {
19	// Pass through to the network. A fetch listener must exist for the app to be
20	// treated as installable, but we deliberately do not intercept the request.
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.