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
This commit is contained in:
vabene1111
2022-01-19 17:36:57 +01:00
parent 61a253675c
commit 4a9e027849

View File

@ -46,7 +46,7 @@ registerRoute(
registerRoute(
({request}) => (request.destination === 'script' || request.destination === 'style'),
new StaleWhileRevalidate({
new NetworkFirst({
cacheName: 'assets'
})
)