This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 32
32
left-icon =" bolt"
33
33
variant-color =" vue"
34
34
size =" lg"
35
- @click = " $router.push('/getting-started') "
35
+ as = " nuxt-link "
36
36
>
37
37
Get started
38
38
</CButton >
Original file line number Diff line number Diff line change 1
- // THIS FILE SHOULD NOT BE VERSION CONTROLLED
1
+ importScripts ( 'https://cdn.jsdelivr.net/npm/[email protected] /workbox/workbox-sw.js' )
2
+
3
+ // --------------------------------------------------
4
+ // Configure
5
+ // --------------------------------------------------
6
+
7
+ // Set workbox config
8
+ workbox . setConfig ( {
9
+ "debug" : false
10
+ } )
11
+
12
+ // Start controlling any existing clients as soon as it activates
13
+ workbox . core . clientsClaim ( )
14
+
15
+ // Skip over the SW waiting lifecycle stage
16
+ workbox . core . skipWaiting ( )
17
+
18
+ workbox . precaching . cleanupOutdatedCaches ( )
19
+
20
+ // --------------------------------------------------
21
+ // Precaches
22
+ // --------------------------------------------------
23
+
24
+ // Precache assets
25
+
26
+ // --------------------------------------------------
27
+ // Runtime Caching
28
+ // --------------------------------------------------
29
+
30
+ // Register route handlers for runtimeCaching
31
+ workbox . routing . registerRoute ( new RegExp ( '/_nuxt/' ) , new workbox . strategies . CacheFirst ( { } ) , 'GET' )
32
+ workbox . routing . registerRoute ( new RegExp ( '/' ) , new workbox . strategies . NetworkFirst ( { } ) , 'GET' )
You can’t perform that action at this time.
0 commit comments