ServiceWorker: use network-first strategy

This commit is contained in:
Alex Gleason
2023-01-11 18:24:09 -06:00
parent 994d9ebd35
commit e9327c1883
4 changed files with 3 additions and 27 deletions

View File

@ -40,6 +40,7 @@ const configuration: Configuration = {
}),
new OfflinePlugin({
autoUpdate: true,
responseStrategy: 'network-first',
caches: {
main: [':rest:'],
additional: [
@ -146,7 +147,6 @@ const configuration: Configuration = {
requestTypes: ['navigate'],
}],
safeToUseOptionalCaches: true,
appShell: join(FE_SUBDIRECTORY, '/'),
}),
],
};