PageSourceSearch

https://www.hakkaradio.org.tw/sw.js

js hakkaradio.org.tw collected 2026-10-02 11:05:50 UTC 412 bytes, 22 lines download raw bytes

1const CACHE_VERSION = 'v1';
2
3self.addEventListener('install', () => {
4  self.skipWaiting();
5});
6
7self.addEventListener('activate', event => {
8  event.waitUntil(
9    (async () => {
10      const keys = await caches.keys();
11
12      await Promise.all(
13        keys
14          .filter(key => key !== CACHE_VERSION)
15          .map(key => caches.delete(key))
16      );
17
18      await self.clients.claim();
19
20    })()
21  );
22});

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.