PageSourceSearch

https://autoseductionai.com/serviceworker.js

js autoseductionai.com collected 2026-10-09 22:56:49 UTC 2,068 bytes, 63 lines download raw bytes

1self.addEventListener('install', () => {
2    // Skip over the "waiting" lifecycle state, to ensure that our
3    // new service worker is activated immediately, even if there's
4    // another tab open controlled by our older service worker code.
5    self.skipWaiting();
6});
7
8self.addEventListener('activate', () => {
9    // Optional: Get a list of all the current open windows/tabs under
10    // our service worker's control, and force them to reload.
11    // This can "unbreak" any open windows/tabs as soon as the new
12    // service worker activates, rather than users having to manually reload.
13    self.clients.matchAll({
14        type: 'window'
15    }).then(windowClients => {
16        windowClients.forEach((windowClient) => {
17            windowClient.navigate(windowClient.url);
18        });
19    });
20});
21
22// var staticCacheName = "autoseductionai-pwa-v" + new Date().getTime();
23// var filesToCache = [
24//     '/offline'
25// ];
26
27// // Cache on install
28// self.addEventListener("install", event => {
29//     this.skipWaiting();
30//     event.waitUntil(
31//         caches.open(staticCacheName)
32//             .then(cache => {
33//                 return cache.addAll(filesToCache);
34//             })
35//     )
36// });
37
38// // Clear cache on activate
39// self.addEventListener('activate', event => {
40//     event.waitUntil(
41//         caches.keys().then(cacheNames => {
42//             return Promise.all(
43//                 cacheNames
44//                     .filter(cacheName => (cacheName.startsWith("autoseductionai-pwa-")))
45//                     .filter(cacheName => (cacheName !== staticCacheName))
46//                     .map(cacheName => caches.delete(cacheName))
47//             );
48//         })
49//     );
50// });
51
52// // Serve from Cache
53// self.addEventListener("fetch", event => {
54//     event.respondWith(
55//         caches.match(event.request)
56//             .then(response => {
57//                 return response || fetch(event.request);
58//             })
59//             .catch(() => {
60//                 return caches.match('offline');
61//             })
62//     )
63// });

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.