Merge branch 'sw-network-first' into 'develop'

ServiceWorker: use network-first strategy

See merge request soapbox-pub/soapbox!2159
This commit is contained in:
Alex Gleason
2023-01-23 18:09:37 +00:00
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, '/'),
}),
],
};