PageSourceSearch

https://www.contrado.fr/sw-cdo.js

js contrado.fr collected 2026-09-28 06:06:50 UTC 875 bytes, 30 lines download raw bytes

1importScripts('sw-common.js');
2
3const staticCacheName = 'cdo-cache';
4
5
6const cachefirstassests = [
7    ["/webpackstatic.axd?bundle=JqueryJs", 24 * 60 * 60],
8    ["/webpackstatic.axd?bundle=BolAngular", 24 * 60 * 60],
9    ["/webpackstatic.axd?bundle=JqueryJsLib", 24 * 60 * 60],
10    ["webpackstatic.axd ?bundle=StoreJquery", 24 * 60 * 60],
11    ["/webpackstatic.axd?bundle=SwiperLib", 24 * 60 * 60]    
12];
13
14
15cachefirstassests.forEach((assest) => {
16
17    workbox.routing.registerRoute(
18        ({ request }) => { return assest.some(x => request.url.includes(x)) },
19        new workbox.strategies.CacheFirst({
20            cacheName: staticCacheName,
21            plugins: [
22                new workbox.expiration.ExpirationPlugin({
23                    maxAgeSeconds: assest[1] // 24 hours
24                }),
25            ],
26        })
27    );
28
29});
30

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.