PWA: Reduce Workbox service worker precaching #5274

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-19 08:11:43 +02:00
parent fd2a386c71
commit 6d0f720574

View File

@@ -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/",
},