PageSourceSearch

https://autowork.com.vn/service-worker.js

js autowork.com.vn collected 2026-10-02 00:04:21 UTC 719 bytes, 23 lines download raw bytes

1// One-release cleanup worker. Replaces cache-first autowork-cache-v1.
2// Repository history contains no writer for the old form queue, so this worker
3// deliberately performs no request replay. Rollback must not restore stale chunks.
4
5const KNOWN_CACHE_PREFIX = "autowork-cache";
6
7self.addEventListener("install", (event) => {
8  event.waitUntil(self.skipWaiting());
9});
10
11self.addEventListener("activate", (event) => {
12  event.waitUntil(
13    (async () => {
14      const names = await caches.keys();
15      await Promise.all(
16        names
17          .filter((name) => String(name).startsWith(KNOWN_CACHE_PREFIX))
18          .map((name) => caches.delete(name)),
19      );
20      await self.clients.claim();
21    })(),
22  );
23});

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.