...
|
...
|
@@ -68,6 +68,9 @@ workboxSW = new self.WorkboxSW({ |
|
|
skipWaiting: true
|
|
|
});
|
|
|
cacheFirstStrategy = workboxSW.strategies.cacheFirst({
|
|
|
cacheableResponse: {
|
|
|
statuses: [0, 200]
|
|
|
},
|
|
|
cacheExpiration: {
|
|
|
maxEntries: 1000,
|
|
|
maxAgeSeconds: 7 * 24 * 60 * 60 // 7 day
|
...
|
...
|
|