File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ importScripts(
15
15
workbox . routing . registerRoute (
16
16
/ \. ( c s s | h t m l | j s ) $ / ,
17
17
new workbox . strategies . NetworkFirst ( {
18
- cacheName : "assets-cache " ,
18
+ cacheName : "assets" ,
19
19
plugins : [
20
20
new workbox . expiration . ExpirationPlugin ( {
21
- maxEntries : 50 , // Limit number of images cached
21
+ maxEntries : 50 ,
22
22
maxAgeSeconds : 1 * 24 * 60 * 60 , // 1 day
23
23
} ) ,
24
24
] ,
@@ -27,12 +27,12 @@ workbox.routing.registerRoute(
27
27
28
28
// Images
29
29
workbox . routing . registerRoute (
30
- / h t t p s ? : \/ \/ s 3 \. / ,
30
+ / h t t p s ? : \/ \/ s 3 \. a p p \. m e e t l y \. s i t e / ,
31
31
new workbox . strategies . CacheFirst ( {
32
- cacheName : "images-cache " ,
32
+ cacheName : "images" ,
33
33
plugins : [
34
34
new workbox . expiration . ExpirationPlugin ( {
35
- maxEntries : 50 , // Limit number of images cached
35
+ maxEntries : 50 ,
36
36
maxAgeSeconds : 30 * 24 * 60 * 60 , // 30 days
37
37
} ) ,
38
38
] ,
You can’t perform that action at this time.
0 commit comments