Skip to content

Commit 9901f38

Browse files
committed
bundle update
1 parent 91017ec commit 9901f38

File tree

3 files changed

+30
-24
lines changed

3 files changed

+30
-24
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ group :jekyll_plugins do
66
gem 'jekyll-sitemap'
77
gem 'jekyll-seo-tag'
88
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
1010
gem 'jekyll-admin'
1111
end
1212

Gemfile.lock

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GIT
22
remote: https://github.com/jekyll/minima
3-
revision: a98a8fed7203738991b98d4f90a80dec3ebcf4f7
3+
revision: 3cdd14dff1216f561c68329e0b7420c2dc9b796a
44
specs:
5-
minima (2.5.0)
5+
minima (2.5.1)
66
jekyll (>= 3.5, < 5.0)
77
jekyll-feed (~> 0.9)
88
jekyll-seo-tag (~> 2.1)
@@ -12,17 +12,17 @@ GEM
1212
specs:
1313
addressable (2.7.0)
1414
public_suffix (>= 2.0.2, < 5.0)
15-
backports (3.18.2)
15+
backports (3.21.0)
1616
colorator (1.1.0)
17-
concurrent-ruby (1.1.7)
17+
concurrent-ruby (1.1.9)
1818
em-websocket (0.5.2)
1919
eventmachine (>= 0.12.9)
2020
http_parser.rb (~> 0.6.0)
2121
eventmachine (1.2.7)
22-
ffi (1.13.1)
22+
ffi (1.15.1)
2323
forwardable-extended (2.6.0)
2424
http_parser.rb (0.6.0)
25-
i18n (1.8.5)
25+
i18n (1.8.10)
2626
concurrent-ruby (~> 1.0)
2727
jekyll (4.1.1)
2828
addressable (~> 2.4)
@@ -39,14 +39,14 @@ GEM
3939
rouge (~> 3.0)
4040
safe_yaml (~> 1.0)
4141
terminal-table (~> 1.8)
42-
jekyll-admin (0.10.2)
42+
jekyll-admin (0.11.0)
4343
jekyll (>= 3.7, < 5.0)
4444
sinatra (~> 1.4)
4545
sinatra-contrib (~> 1.4)
4646
jekyll-feed (0.15.1)
4747
jekyll (>= 3.7, < 5.0)
4848
jekyll-pwa-plugin (2.2.3)
49-
jekyll-remote-theme (0.4.2)
49+
jekyll-remote-theme (0.4.3)
5050
addressable (~> 2.0)
5151
jekyll (>= 3.5, < 5.0)
5252
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
@@ -59,12 +59,12 @@ GEM
5959
jekyll (>= 3.7, < 5.0)
6060
jekyll-watch (2.2.1)
6161
listen (~> 3.0)
62-
kramdown (2.3.0)
62+
kramdown (2.3.1)
6363
rexml
6464
kramdown-parser-gfm (1.1.0)
6565
kramdown (~> 2.0)
6666
liquid (4.0.3)
67-
listen (3.3.0)
67+
listen (3.5.1)
6868
rb-fsevent (~> 0.10, >= 0.10.3)
6969
rb-inotify (~> 0.9, >= 0.9.10)
7070
mercenary (0.4.0)
@@ -77,11 +77,11 @@ GEM
7777
rack
7878
rack-test (1.1.0)
7979
rack (>= 1.0, < 3)
80-
rb-fsevent (0.10.4)
80+
rb-fsevent (0.11.0)
8181
rb-inotify (0.10.1)
8282
ffi (~> 1.0)
83-
rexml (3.2.4)
84-
rouge (3.25.0)
83+
rexml (3.2.5)
84+
rouge (3.26.0)
8585
rubyzip (2.3.0)
8686
safe_yaml (1.0.5)
8787
sassc (2.4.0)
@@ -109,7 +109,7 @@ DEPENDENCIES
109109
jekyll (~> 4.1.1)
110110
jekyll-admin
111111
jekyll-feed (~> 0.12)
112-
jekyll-pwa-plugin
112+
jekyll-pwa-plugin (= 2.2.3)
113113
jekyll-remote-theme
114114
jekyll-seo-tag
115115
jekyll-sitemap

service-worker.js

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
11
// set names for both precache & runtime cache
22
workbox.core.setCacheNameDetails({
33
prefix: 'my-blog',
4-
suffix: 'v1',
4+
suffix: 'v1.0',
55
precache: 'precache',
66
runtime: 'runtime-cache'
77
});
88

99
// let Service Worker take control of pages ASAP
10-
workbox.skipWaiting();
11-
workbox.clientsClaim();
10+
workbox.core.skipWaiting();
11+
workbox.core.clientsClaim();
1212

1313
// let Workbox handle our precache list
1414
workbox.precaching.precacheAndRoute(self.__precacheManifest);
1515

16-
// use `networkFirst` strategy for `*.html`, like all my posts
16+
// use `NetworkFirst` strategy for html
1717
workbox.routing.registerRoute(
1818
/\.html$/,
19-
workbox.strategies.networkFirst()
19+
new workbox.strategies.NetworkFirst()
2020
);
2121

22-
// use `cacheFirst` strategy for images
22+
// use `NetworkFirst` strategy for css and js
23+
workbox.routing.registerRoute(
24+
/\.(?:js|css)$/,
25+
new workbox.strategies.NetworkFirst()
26+
);
27+
28+
// use `CacheFirst` strategy for images
2329
workbox.routing.registerRoute(
2430
/assets\/(img|icons)/,
25-
workbox.strategies.cacheFirst()
31+
new workbox.strategies.CacheFirst()
2632
);
2733

28-
// third party files
34+
// use `StaleWhileRevalidate` third party files
2935
workbox.routing.registerRoute(
3036
/^https?:\/\/cdn.staticfile.org/,
31-
workbox.strategies.staleWhileRevalidate()
37+
new workbox.strategies.StaleWhileRevalidate()
3238
);

0 commit comments

Comments
 (0)