File tree 3 files changed +30
-24
lines changed
3 files changed +30
-24
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ group :jekyll_plugins do
6
6
gem 'jekyll-sitemap'
7
7
gem 'jekyll-seo-tag'
8
8
gem 'jekyll-remote-theme'
9
- gem 'jekyll-pwa-plugin' # https://github.com/lavas-project/jekyll-pwa
9
+ gem 'jekyll-pwa-plugin' , "= 2.2.3" # https://github.com/lavas-project/jekyll-pwa
10
10
gem 'jekyll-admin'
11
11
end
12
12
Original file line number Diff line number Diff line change 1
1
GIT
2
2
remote: https://github.com/jekyll/minima
3
- revision: a98a8fed7203738991b98d4f90a80dec3ebcf4f7
3
+ revision: 3cdd14dff1216f561c68329e0b7420c2dc9b796a
4
4
specs:
5
- minima (2.5.0 )
5
+ minima (2.5.1 )
6
6
jekyll (>= 3.5 , < 5.0 )
7
7
jekyll-feed (~> 0.9 )
8
8
jekyll-seo-tag (~> 2.1 )
12
12
specs:
13
13
addressable (2.7.0 )
14
14
public_suffix (>= 2.0.2 , < 5.0 )
15
- backports (3.18.2 )
15
+ backports (3.21.0 )
16
16
colorator (1.1.0 )
17
- concurrent-ruby (1.1.7 )
17
+ concurrent-ruby (1.1.9 )
18
18
em-websocket (0.5.2 )
19
19
eventmachine (>= 0.12.9 )
20
20
http_parser.rb (~> 0.6.0 )
21
21
eventmachine (1.2.7 )
22
- ffi (1.13 .1 )
22
+ ffi (1.15 .1 )
23
23
forwardable-extended (2.6.0 )
24
24
http_parser.rb (0.6.0 )
25
- i18n (1.8.5 )
25
+ i18n (1.8.10 )
26
26
concurrent-ruby (~> 1.0 )
27
27
jekyll (4.1.1 )
28
28
addressable (~> 2.4 )
39
39
rouge (~> 3.0 )
40
40
safe_yaml (~> 1.0 )
41
41
terminal-table (~> 1.8 )
42
- jekyll-admin (0.10.2 )
42
+ jekyll-admin (0.11.0 )
43
43
jekyll (>= 3.7 , < 5.0 )
44
44
sinatra (~> 1.4 )
45
45
sinatra-contrib (~> 1.4 )
46
46
jekyll-feed (0.15.1 )
47
47
jekyll (>= 3.7 , < 5.0 )
48
48
jekyll-pwa-plugin (2.2.3 )
49
- jekyll-remote-theme (0.4.2 )
49
+ jekyll-remote-theme (0.4.3 )
50
50
addressable (~> 2.0 )
51
51
jekyll (>= 3.5 , < 5.0 )
52
52
jekyll-sass-converter (>= 1.0 , <= 3.0.0 , != 2.0.0 )
59
59
jekyll (>= 3.7 , < 5.0 )
60
60
jekyll-watch (2.2.1 )
61
61
listen (~> 3.0 )
62
- kramdown (2.3.0 )
62
+ kramdown (2.3.1 )
63
63
rexml
64
64
kramdown-parser-gfm (1.1.0 )
65
65
kramdown (~> 2.0 )
66
66
liquid (4.0.3 )
67
- listen (3.3.0 )
67
+ listen (3.5.1 )
68
68
rb-fsevent (~> 0.10 , >= 0.10.3 )
69
69
rb-inotify (~> 0.9 , >= 0.9.10 )
70
70
mercenary (0.4.0 )
77
77
rack
78
78
rack-test (1.1.0 )
79
79
rack (>= 1.0 , < 3 )
80
- rb-fsevent (0.10.4 )
80
+ rb-fsevent (0.11.0 )
81
81
rb-inotify (0.10.1 )
82
82
ffi (~> 1.0 )
83
- rexml (3.2.4 )
84
- rouge (3.25 .0 )
83
+ rexml (3.2.5 )
84
+ rouge (3.26 .0 )
85
85
rubyzip (2.3.0 )
86
86
safe_yaml (1.0.5 )
87
87
sassc (2.4.0 )
@@ -109,7 +109,7 @@ DEPENDENCIES
109
109
jekyll (~> 4.1.1 )
110
110
jekyll-admin
111
111
jekyll-feed (~> 0.12 )
112
- jekyll-pwa-plugin
112
+ jekyll-pwa-plugin ( = 2.2.3 )
113
113
jekyll-remote-theme
114
114
jekyll-seo-tag
115
115
jekyll-sitemap
Original file line number Diff line number Diff line change 1
1
// set names for both precache & runtime cache
2
2
workbox . core . setCacheNameDetails ( {
3
3
prefix : 'my-blog' ,
4
- suffix : 'v1' ,
4
+ suffix : 'v1.0 ' ,
5
5
precache : 'precache' ,
6
6
runtime : 'runtime-cache'
7
7
} ) ;
8
8
9
9
// let Service Worker take control of pages ASAP
10
- workbox . skipWaiting ( ) ;
11
- workbox . clientsClaim ( ) ;
10
+ workbox . core . skipWaiting ( ) ;
11
+ workbox . core . clientsClaim ( ) ;
12
12
13
13
// let Workbox handle our precache list
14
14
workbox . precaching . precacheAndRoute ( self . __precacheManifest ) ;
15
15
16
- // use `networkFirst ` strategy for `*. html`, like all my posts
16
+ // use `NetworkFirst ` strategy for html
17
17
workbox . routing . registerRoute (
18
18
/ \. h t m l $ / ,
19
- workbox . strategies . networkFirst ( )
19
+ new workbox . strategies . NetworkFirst ( )
20
20
) ;
21
21
22
- // use `cacheFirst` strategy for images
22
+ // use `NetworkFirst` strategy for css and js
23
+ workbox . routing . registerRoute (
24
+ / \. (?: j s | c s s ) $ / ,
25
+ new workbox . strategies . NetworkFirst ( )
26
+ ) ;
27
+
28
+ // use `CacheFirst` strategy for images
23
29
workbox . routing . registerRoute (
24
30
/ a s s e t s \/ ( i m g | i c o n s ) / ,
25
- workbox . strategies . cacheFirst ( )
31
+ new workbox . strategies . CacheFirst ( )
26
32
) ;
27
33
28
- // third party files
34
+ // use `StaleWhileRevalidate` third party files
29
35
workbox . routing . registerRoute (
30
36
/ ^ h t t p s ? : \/ \/ c d n .s t a t i c f i l e .o r g / ,
31
- workbox . strategies . staleWhileRevalidate ( )
37
+ new workbox . strategies . StaleWhileRevalidate ( )
32
38
) ;
You can’t perform that action at this time.
0 commit comments