mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
PWA: Reduce Workbox service worker precaching #5274
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -103,7 +103,16 @@ const config = {
|
||||
clientsClaim: false,
|
||||
skipWaiting: false,
|
||||
navigateFallback: undefined,
|
||||
exclude: [/\.map$/, /assets\.json$/, /\.txt$/],
|
||||
exclude: [
|
||||
/\.map$/,
|
||||
/\.txt$/,
|
||||
/\.ttf$/,
|
||||
/\.woff$/,
|
||||
/assets\.json$/,
|
||||
/chunk\/.*-json\.[a-f0-9]+\.js$/,
|
||||
/locales\/json\/.*\.json$/,
|
||||
/share\.[a-f0-9]+\.(?:js|css)$/,
|
||||
],
|
||||
modifyURLPrefix: {
|
||||
"": "static/build/",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user