From 3a7576f56aa780528179c7227da1ed824ad52264 Mon Sep 17 00:00:00 2001 From: max-42 Date: Thu, 21 Sep 2023 08:12:41 +0200 Subject: [PATCH] Update service worker to prefetch additional fonts and increase cache version from 'v6' to 'v7'. - Increase CACHE_VERSION constant from 'v6' to 'v7' to indicate cache update. - Add two new font URLs for prefetching: MathJax_Math-Italic.woff and MathJax_Size3-Regular.woff. --- service-worker.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/service-worker.js b/service-worker.js index 2f213b3..4bd344d 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1,6 +1,6 @@ // service-worker.js -const CACHE_VERSION = 'v6'; //todo UPDATE? +const CACHE_VERSION = 'v7'; //todo UPDATE? const CACHE_NAME = `matrix-game-cache-${CACHE_VERSION}`; const urlsToCache = [ '/', @@ -12,6 +12,9 @@ const urlsToCache = [ 'assets/libraries/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff', 'assets/libraries/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff', 'assets/libraries/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff', + 'assets/libraries/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff', + 'assets/libraries/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff', + // icons '192x192.png', '512x512.png',