From 9524886007fcb8df99c86215ee9d4892a4c8325d Mon Sep 17 00:00:00 2001 From: Johan Book <13253042+johanbook@users.noreply.github.com> Date: Sun, 21 Jul 2024 10:32:04 +0200 Subject: [PATCH] fix(web-ui): fix typo (#914) * fix(web-ui): fix typo * perf(web-ui): include json in service worker cache --------- Co-authored-by: Johan Book <{ID}+{username}@users.noreply.github.com> --- services/web-ui/public/locales/en/blog-photos.json | 2 +- services/web-ui/src/serviceWorker.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web-ui/public/locales/en/blog-photos.json b/services/web-ui/public/locales/en/blog-photos.json index 2884efa9..f9352d90 100644 --- a/services/web-ui/public/locales/en/blog-photos.json +++ b/services/web-ui/public/locales/en/blog-photos.json @@ -1,4 +1,4 @@ { "error": "Unable to fetch photos", - "no-photos": "No photos has been uploaded yet. Create a blog post to make that happen!" + "no-photos": "No photos have been uploaded yet. Create a blog post to make that happen!" } diff --git a/services/web-ui/src/serviceWorker.js b/services/web-ui/src/serviceWorker.js index a2b53b88..a6b8bae9 100644 --- a/services/web-ui/src/serviceWorker.js +++ b/services/web-ui/src/serviceWorker.js @@ -27,7 +27,7 @@ workbox.routing.registerRoute( // Assets workbox.routing.registerRoute( - /\.(css|html|js)$/, + /\.(css|html|js|json)$/, new workbox.strategies.NetworkFirst({ cacheName: "assets", plugins: [