add clear caching
This commit is contained in:
4
sw.js
4
sw.js
@ -12,7 +12,7 @@ if(workbox) {
|
||||
cacheName: 'images-cache',
|
||||
plugins: [
|
||||
new workbox.expiration.ExpirationPlugin({
|
||||
maxEntries: 500,
|
||||
maxEntries: 600,
|
||||
maxAgeSeconds: 365 * 24 * 60 * 60,
|
||||
}),
|
||||
],
|
||||
@ -37,7 +37,7 @@ if(workbox) {
|
||||
cacheName: 'json-cache',
|
||||
plugins: [
|
||||
new workbox.expiration.ExpirationPlugin({
|
||||
maxAgeSeconds: 24 * 60 * 60,
|
||||
maxAgeSeconds: 3 * 60 * 60,
|
||||
maxEntries: 2,
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user