A platform for community discussion. Free, open, simple.
PERF: Add more constraint on the Cache Storage usage
Rafael dos Santos Silva1922d4bf78db
diff --git a/app/assets/javascripts/service-worker.js.erb b/app/assets/javascripts/service-worker.js.erbindex cc911ea251b..ecc892334b2 100644--- a/app/assets/javascripts/service-worker.js.erb+++ b/app/assets/javascripts/service-worker.js.erb@@ -17,6 +17,8 @@ workbox.routing.registerRoute(plugins: [new workbox.expiration.Plugin({maxAgeSeconds: 7* 24 * 60 * 60, // 7 days+ maxEntries: 500,+ purgeOnQuotaError: true, // safe to automatically delete if exceeding the available storage}),],})