PageSourceSearch

https://dhpol.de/sw.js

js dhpol.de collected 2026-09-24 18:23:47 UTC 1,928 bytes, 79 lines download raw bytes

1self.__WB_OFFLINE_FALLBACK_URL = './offline.html';
2	self.__WB_OFFLINE_FALLBACK_REVISION = '1637941323741';
3
4
5
6importScripts('https://www.dhpol.de/WEB-IES/sitekit-module/thirdparty/workbox-3.6.3/workbox-sw.js');
7
8if (workbox) {
9	workbox.setConfig({
10		modulePathPrefix: '/WEB-IES/sitekit-module/thirdparty/workbox-3.6.3/'
11	});
12
13	workbox.skipWaiting();
14	workbox.clientsClaim();
15
16	
17	if (self.__WB_OFFLINE_FALLBACK_URL) {
18		workbox.precaching.precacheAndRoute([
19			{ url: self.__WB_OFFLINE_FALLBACK_URL, revision: self.__WB_OFFLINE_FALLBACK_REVISION },
20		]);
21		workbox.routing.registerRoute(new workbox.routing.NavigationRoute(async ({ event }) => {
22			try {
23				return await workbox.strategies.networkOnly().handle({event});
24			} catch (error) {
25				return caches.match(self.__WB_OFFLINE_FALLBACK_URL);
26			}
27		}));
28	}
29	
30
31	workbox.routing.registerRoute(
32		/\.(?:js|css)(\?b=\d*)?$/,
33		workbox.strategies.staleWhileRevalidate({
34			cacheName: 'js-css',
35			plugins: [
36				new workbox.cacheableResponse.Plugin({
37					statuses: [0, 200]
38				})
39			]
40		})
41	);
42
43	workbox.routing.registerRoute(
44		/\.(?:png|gif|jpg|jpeg|webp)$/,
45		workbox.strategies.cacheFirst({
46			cacheName: 'images',
47			plugins: [
48				new workbox.expiration.Plugin({
49					maxEntries: 120,
50					maxAgeSeconds: 30 * 24 * 60 * 60, // 30 Days,
51					// Automatically cleanup if quota is exceeded.
52					purgeOnQuotaError: true
53				}),
54				new workbox.cacheableResponse.Plugin({
55					statuses: [0, 200]
56				})
57			],
58		})
59	);
60
61	workbox.routing.registerRoute(
62		/\.(?:woff2|woff|ttf)$/,
63		workbox.strategies.cacheFirst({
64			cacheName: 'fonts',
65			plugins: [
66				new workbox.expiration.Plugin({
67					maxAgeSeconds: 360 * 24 * 60 * 60, // 360 Days,
68					// Automatically cleanup if quota is exceeded.
69					purgeOnQuotaError: true
70				}),
71				new workbox.cacheableResponse.Plugin({
72					statuses: [0, 200]
73				})
74			],
75		})
76	);
77} else {
78	console.log(`Boo! Workbox didn't load ??`);
79}

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.