PageSourceSearch

https://www.lafc.com/assets/serviceWorker.js

js lafc.com collected 2026-09-24 18:03:47 UTC 3,206 bytes, 122 lines download raw bytes

1/******/ (() => { // webpackBootstrap
2var __webpack_exports__ = {};
3/*!*********************************!*\
4  !*** ./static/serviceWorker.js ***!
5  \*********************************/
6importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
7if (workbox) {
8  console.log(`Yay! Workbox is loaded ?`);
9  workbox.core.skipWaiting();
10  workbox.precaching.precacheAndRoute([]);
11  workbox.routing.registerRoute(
12    /https:\/\/images\.mlssoccer\.com/,
13    new workbox.strategies.NetworkFirst({
14      cacheName: "cloudinary-cache",
15      plugins: [
16        new workbox.expiration.Plugin({
17          // Cache 50 items
18          maxEntries: 50,
19          purgeOnQuotaError: true
20        })
21      ]
22    })
23  );
24  workbox.routing.registerRoute(
25    // Cache news pages
26    /\/news\//,
27    new workbox.strategies.NetworkFirst({
28      // Use a custom cache name.
29      cacheName: "news-cache",
30      plugins: [
31        new workbox.expiration.Plugin({
32          // Cache 20 items
33          maxEntries: 20,
34          purgeOnQuotaError: true
35        })
36      ]
37    })
38  );
39  workbox.routing.registerRoute(
40    // Cache photos pages
41    /\/photos\//,
42    new workbox.strategies.NetworkFirst({
43      // Use a custom cache name.
44      cacheName: "photos-cache",
45      plugins: [
46        new workbox.expiration.Plugin({
47          // Cache 10 items
48          maxEntries: 10,
49          purgeOnQuotaError: true
50        })
51      ]
52    })
53  );
54  workbox.routing.registerRoute(
55    // Cache videos pages
56    /\/videos\//,
57    new workbox.strategies.StaleWhileRevalidate({
58      // Use a custom cache name.
59      cacheName: "videos-cache",
60      plugins: [
61        new workbox.expiration.Plugin({
62          // Cache 10 items
63          maxEntries: 10,
64          purgeOnQuotaError: true
65        })
66      ]
67    })
68  );
69  workbox.routing.registerRoute(
70    // Cache addon files.
71    /\/addon\//,
72    // Use cache but update in the background.
73    new workbox.strategies.NetworkFirst({
74      // Use a custom cache name.
75      cacheName: "addon-cache"
76    })
77  );
78  workbox.routing.registerRoute(
79    /\.(?:woff|woff2)$/,
80    new workbox.strategies.StaleWhileRevalidate({
81      // Use a custom cache name.
82      cacheName: "fonts",
83      plugins: [
84        new workbox.expiration.Plugin({
85          // Cache for 365 days
86          maxAgeSeconds: 60 * 60 * 24 * 365
87        })
88      ]
89    })
90  );
91  workbox.routing.registerRoute(
92    /\.(?:png|jpg|jpeg|svg,gif,ico)$/,
93    new workbox.strategies.StaleWhileRevalidate({
94      // Use a custom cache name.
95      cacheName: "images",
96      plugins: [
97        new workbox.expiration.Plugin({
98          // Only cache 20 images.
99          maxEntries: 20
100        })
101      ]
102    })
103  );
104  workbox.routing.registerRoute(
105    // Cache CSS files.
106    /\/assets\//,
107    // Use cache but update in the background.
108    new workbox.strategies.NetworkFirst({
109      // Use a custom cache name.
110      cacheName: "assets-cache"
111    })
112  );
113  if (workbox.precaching && workbox.precaching.cleanupOutdatedCaches) {
114    workbox.precaching.cleanupOutdatedCaches();
115  }
116} else {
117  console.log(`Boo! Workbox didn't load ?`);
118}
119
120/******/ })()
121;
122//# sourceMappingURL=serviceWorker.js.map

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.