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:
@ -46,7 +46,7 @@ registerRoute(
|
||||
|
||||
registerRoute(
|
||||
({request}) => (request.destination === 'script' || request.destination === 'style'),
|
||||
new StaleWhileRevalidate({
|
||||
new NetworkFirst({
|
||||
cacheName: 'assets'
|
||||
})
|
||||
)
|
||||
|
Reference in New Issue
Block a user