PageSourceSearch

https://www.secours-expo.com/serviceworkers.js

js secours-expo.com collected 2026-10-08 05:21:05 UTC 6,960 bytes, 98 lines download raw bytes

1(function(){
2            'use strict';
3            importScripts('/scripts/workbox-sw.v7.0.0.js');
4
5            // SW Version V12026-10-07T08:55:16.640Z
6            //pour faire du offline il faut que la page html soit hors authent, on laisse de côté pour l'instant...
7
8            workbox.precaching.precacheAndRoute([
9                {url:'/assets/fonts/inwink/inwinkpictos.css', revision: 'V12026-10-07T08:55:16.640Z'},       
10                {url:'/assets/fonts/inwink/inwink.eot', revision: 'V12026-10-07T08:55:16.640Z'},
11                {url:'/assets/fonts/inwink/inwink.ttf', revision: 'V12026-10-07T08:55:16.640Z'},
12                {url:'/assets/fonts/inwink/inwink.woff', revision: 'V12026-10-07T08:55:16.640Z'},            
13                {url:'/assets/styles/react-slick.css', revision: 'V12026-10-07T08:55:16.640Z'}
14                ]);
15
16            var cacheFirstOptions = {
17                cacheableResponse: {statuses: [0, 200]},
18                cacheName: 'inwink_V12026-10-07T08:55:16.640Z',
19                plugins: [
20                  new workbox.expiration.ExpirationPlugin({
21                    // Only cache requests for a week
22                    maxAgeSeconds: 7 * 24 * 60 * 60
23                  }),
24                ]
25              };
26            var dataCacheFirstOptions = {
27                cacheableResponse: {statuses: [0, 200]},
28                cacheName: 'inwinkdata_secours-expo-2026_V12026-10-07T08:55:16.640Z',
29                plugins: [
30                  new workbox.expiration.ExpirationPlugin({
31                    // Only cache requests for a week
32                    maxAgeSeconds: 7 * 24 * 60 * 60
33                  }),
34                ]
35              };
36
37            var rootPageOptions = {
38                cacheableResponse: {statuses: [0, 200]},
39                cacheName: 'inwinkroot_V12026-10-07T08:55:16.640Z',
40                plugins: [
41                  new workbox.expiration.ExpirationPlugin({
42                    // Only cache requests for a week
43                    maxAgeSeconds: 300
44                  }),
45                ]
46              };
47
48              workbox.routing.registerRoute(new RegExp('https://fonts.googleapis.com/.*'), new workbox.strategies.CacheFirst({
49                  cacheableResponse: {statuses: [0, 200]},
50                  cacheName: 'google-fontsV12026-10-07T08:55:16.640Z',
51                  cacheExpiration: {
52                      maxEntries: 31,
53                  }
54              }));
55
56              workbox.routing.registerRoute(new RegExp('https://fonts.gstatic.com/.*'), new workbox.strategies.CacheFirst({
57                  cacheableResponse: {statuses: [0, 200]},
58                  cacheName: 'google-fontsV12026-10-07T08:55:16.640Z',
59                  cacheExpiration: {
60                      maxEntries: 31,
61                  }
62              }));
63
64            workbox.routing.registerRoute(({url}) => {
65                return url.pathname.startsWith("iwsd/");
66            }, new workbox.strategies.CacheFirst(dataCacheFirstOptions));
67            workbox.routing.registerRoute(({url}) => {
68                return url.pathname.startsWith("//iwsd/");
69            }, new workbox.strategies.CacheFirst(dataCacheFirstOptions));
70            workbox.routing.registerRoute(({url}) => {
71                return url.pathname.startsWith("//iwsd.js");
72            }, new workbox.strategies.CacheFirst(dataCacheFirstOptions));
73            workbox.routing.registerRoute(new RegExp('/assets/images/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
74            workbox.routing.registerRoute(new RegExp('/assets/styles/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
75            workbox.routing.registerRoute(new RegExp('/assets/fonts/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
76            workbox.routing.registerRoute(new RegExp('/dll/.*'), new workbox.strategies.CacheFirst(cacheFirstOptions));
77            workbox.routing.registerRoute(new RegExp('/lib/.*'), new workbox.strategies.CacheFirst(cacheFirstOptions));
78            workbox.routing.registerRoute(new RegExp('/dev/.*'), new w
78orkbox.strategies.NetworkFirst(cacheFirstOptions));
79            workbox.routing.registerRoute(new RegExp('/oidc/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
80            workbox.routing.registerRoute(new RegExp('/assets/scripts/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
81            workbox.routing.registerRoute(new RegExp('/scripts/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
82            workbox.routing.registerRoute(new RegExp('/bootstrap.js'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
83            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/assets/images/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
84            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/assets/styles/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
85            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/assets/fonts/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
86            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/dll/.*'), new workbox.strategies.CacheFirst(cacheFirstOptions));
87            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/lib/.*'), new workbox.strategies.CacheFirst(cacheFirstOptions));
88            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/dev/.*'), new workbox.strategies.NetworkFirst(cacheFirstOptions));
89            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/oidc/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
90            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/assets/scripts/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
91            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/scripts/.*'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
92            workbox.routing.registerRoute(new RegExp('https://assets.inwink.com/bootstrap.js'), new workbox.strategies.StaleWhileRevalidate(cacheFirstOptions));
93            workbox.routing.registerRoute(new RegExp('https://storageprdv2inwink.blob.core.windows.net/.*'), new workbox.strategies.CacheFirst(cacheFirstOptions))
94            workbox.routing.registerRoute(new RegExp('https://cdn.inwink.com/.*'), new workbox.strategies.CacheFirst(cacheFirstOptions))
95            workbox.routing.registerRoute(new RegExp('/'), new workbox.strategies.NetworkFirst(rootPageOptions)); 
96            workbox.routing.registerRoute(new RegExp('//.*'), new workbox.strategies.NetworkFirst(rootPageOptions)); 
97            workbox.routing.registerRoute(new RegExp('/.*'), new workbox.strategies.NetworkFirst(rootPageOptions)); 
98        })();

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.