From e2fae51a519c4cbb4449be80c2fabd2382ed9638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr> Date: Mon, 21 Nov 2022 14:34:30 +0100 Subject: [PATCH] fix: service worker configuration for cache prefetching (assets) refs #445 --- ngsw-config.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ngsw-config.json b/ngsw-config.json index 2a1566195..5ba7c9a39 100644 --- a/ngsw-config.json +++ b/ngsw-config.json @@ -14,12 +14,15 @@ "/favicon.ico", "/index.html", "/manifest.webmanifest", - "/**/*.css", + "/app/**/*.json", + "/locale/*.json", + "/*.css", "/*.js", - "/**/*.json", + "/*.json", "/3rdpartylicenses.txt", "/MaterialIcons-Regular.1e50f5c2ffa6aba4.eot", "/assets/**", + "!/**/*.pdf", "/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)" ] } -- GitLab