mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
PWA: Don't cache static assets in service worker #425
Can be enabled later if needed.
This commit is contained in:
@@ -79,7 +79,7 @@ const config = {
|
|||||||
new OfflinePlugin({
|
new OfflinePlugin({
|
||||||
relativePaths: false,
|
relativePaths: false,
|
||||||
publicPath: "/",
|
publicPath: "/",
|
||||||
excludes: ["**/*.txt", "**/share.*"],
|
excludes: ["**/*.txt", "**/*.css", "**/*.js", "**/*.*"],
|
||||||
rewrites: function (asset) {
|
rewrites: function (asset) {
|
||||||
return "/static/build/" + asset;
|
return "/static/build/" + asset;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user