PageSourceSearch

https://0hh.ru/sw3.js

js 0hh.ru collected 2026-10-09 04:34:52 UTC 667 bytes, 24 lines download raw bytes

1"use strict";
2
3var VERSION = 'v0.0.17';
4/* ------------- кеширование ------------------ */
5//importScripts('https://storage.googleapis.com/workbox-cdn/releases/3.0.0/workbox-sw.js');
6importScripts('https://uploads.static.fo.vin/workbox-sw.js');
7
8const CACHE_NAME = 'workbox:cross-origin';
9
10// Cache all
11const REGEXP_ALL = /.*\.(?:js|css|png|jpg|jpeg|svg|webp|gif|woff2|ttf)/;
12
13// [OK] Stale While Revalidate
14workbox.routing.registerRoute(
15  REGEXP_ALL,
16  workbox.strategies.staleWhileRevalidate({
17    cacheName: `${CACHE_NAME}:stale-while-revalidate`,
18  }),
19);
20
21self.addEventListener('install', function() {
22  // For Develop Only
23  self.skipWaiting();
24});

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.