PageSourceSearch

https://www.jurnal.md/sw.js?version=5

js jurnal.md collected 2026-09-24 17:57:09 UTC 2,833 bytes, 95 lines download raw bytes

1importScripts('https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js');
2
3const CACHE_NAME = 'nalyk:yoda:jmd';
4
5if (workbox) {
6  console.log(`Horoshechno! Workbox e incarcat 🎉`);
7
8  workbox.core.setCacheNameDetails({
9    prefix: 'jmd',
10    suffix: 'v4'
11  });
12
13  workbox.precaching.precacheAndRoute([
14      '/assets_v2/css/bootstrap.min.css',
15      '/assets_v2/css/animate.min.css',
16      '/assets_v2/css/meanmenu.css',
17      '/assets_v2/css/boxicons.min.css',
18      '/assets_v2/css/owl.carousel.min.css',
19      '/assets_v2/css/owl.theme.default.min.css',
20      '/assets_v2/css/magnific-popup.min.css',
21      '/assets_v2/css/style.css?v=104',
22      '/assets_v2/css/responsive.css?v=5',
23      '/assets_v2/js/jquery.min.js',
24      '/assets_v2/js/popper.min.js',
25      '/assets_v2/js/bootstrap.min.js',
26      '/assets_v2/js/jquery.meanmenu.js',
27      '/assets_v2/js/owl.carousel.min.js',
28      '/assets_v2/js/jquery.magnific-popup.min.js',
29      '/assets_v2/js/jquery.ajaxchimp.min.js',
30      '/assets_v2/js/form-validator.min.js',
31      '/assets_v2/js/contact-form-script.js',
32      '/assets_v2/js/wow.min.js',
33      '/assets_v2/js/main.js?v=78'
34  ]);
35
36  // Cache the Google Fonts stylesheets with a stale-while-revalidate strategy.
37  workbox.routing.registerRoute(
38    /^https:\/\/fonts\.googleapis\.com/,
39    new workbox.strategies.StaleWhileRevalidate({
40      cacheName: 'google-fonts-stylesheets',
41    })
42  );
43
44  // Cache the underlying font files with a cache-first strategy for 1 year.
45  workbox.routing.registerRoute(
46    /^https:\/\/fonts\.gstatic\.com/,
47    new workbox.strategies.CacheFirst({
48      cacheName: 'google-fonts-webfonts',
49      plugins: [
50        new workbox.cacheableResponse.Plugin({
51          statuses: [0, 200],
52        }),
53        new workbox.expiration.Plugin({
54          maxAgeSeconds: 60 * 60 * 24 * 365,
55          maxEntries: 30,
56        }),
57      ],
58    })
59  );
60 
61  workbox.routing.registerRoute(
62    /^https:\/\/cdnjs\.cloudflare\.com/,
63    new workbox.strategies.CacheFirst({
64      cacheName: 'cdnjs-cloudflare',
65      plugins: [
66        new workbox.cacheableResponse.Plugin({
67          statuses: [0, 200],
68        }),
69        new workbox.expiration.Plugin({
70          maxEntries: 60,
71          maxAgeSeconds: 60 * 60 * 24 * 365, // 365 days
72        }),
73      ],
74    })
75  );
76
77  /* cdn.jsdelivr.net */
78  workbox.routing.registerRoute(
79    /^https:\/\/cdnjs\.jsdelivr\.net/,
80    new workbox.strategies.CacheFirst({
81      cacheName: 'cdnjs-jsdelivr',
82      plugins: [
83        new workbox.cacheableResponse.Plugin({
84          statuses: [0, 200],
85        }),
86        new workbox.expiration.Plugin({
87          maxEntries: 60,
88          maxAgeSeconds: 60 * 60 * 24 * 365, // 365 days
89        }),
90      ],
91    })
92  );
93} else {
94  console.log(`Pecealika! Workbox nu vrea sa mearga 😬`);
95}

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.