From 97bf426891d8d5f6c1bc0ae73ab7ebcde1bf6a3c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr>
Date: Thu, 17 Nov 2022 14:46:25 +0100
Subject: [PATCH] configure cached files by service worker

refs #445
---
 ngsw-config.json | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/ngsw-config.json b/ngsw-config.json
index f8bf2102e..a09056dac 100644
--- a/ngsw-config.json
+++ b/ngsw-config.json
@@ -5,26 +5,21 @@
     {
       "name": "app",
       "installMode": "prefetch",
+      "updateMode": "prefetch",
       "resources": {
         "files": [
           "/favicon.ico",
           "/index.html",
           "/manifest.webmanifest",
-          "/*.css",
-          "/*.js"
-        ]
-      }
-    },
-    {
-      "name": "assets",
-      "installMode": "lazy",
-      "updateMode": "prefetch",
-      "resources": {
-        "files": [
+          "/**/*.css",
+          "/*.js",
+          "/**/*.json",
+          "/3rdpartylicenses.txt",
+          "/MaterialIcons-Regular.1e50f5c2ffa6aba4.eot",
           "/assets/**",
           "/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
         ]
       }
     }
   ]
-}
+}
\ No newline at end of file
-- 
GitLab