From 4a9e027849fd14b76e04ec5073bb671bdb2e5f10 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 19 Jan 2022 17:36:57 +0100 Subject: [PATCH] changed asset caching strategy there were to many issues with stale content breaking the application thus policy was changed to network first. might make another fix to split between more static assets (bootstrap/libraries/...) and more actively changed ones like the frontend --- vue/src/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue/src/sw.js b/vue/src/sw.js index 412586fdb..4222fda56 100644 --- a/vue/src/sw.js +++ b/vue/src/sw.js @@ -46,7 +46,7 @@ registerRoute( registerRoute( ({request}) => (request.destination === 'script' || request.destination === 'style'), - new StaleWhileRevalidate({ + new NetworkFirst({ cacheName: 'assets' }) )