Authored by 毕凯

完善缓存

... ... @@ -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
... ...