From 8fdc430dd59f7b2ddf1d5193f7fd672541916e2f Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 25 Feb 2023 10:31:50 +0800 Subject: [PATCH] Reduce storage usage --- public/sw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/sw.js b/public/sw.js index ddf9f42d..14514039 100644 --- a/public/sw.js +++ b/public/sw.js @@ -21,8 +21,8 @@ const imageRoute = new Route( cacheName: 'remote-images', plugins: [ new ExpirationPlugin({ - maxEntries: 100, - maxAgeSeconds: 7 * 24 * 60 * 60, // 7 days + maxEntries: 50, + maxAgeSeconds: 3 * 24 * 60 * 60, // 3 days purgeOnQuotaError: true, }), new CacheableResponsePlugin({