add clear caching

This commit is contained in:
sky
2025-11-04 22:09:32 -05:00
parent 51bac6f65f
commit 896b2a0133
3 changed files with 27 additions and 4 deletions

4
sw.js
View File

@ -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,
}),
],