From 4eafe33fd1c06d049f71ae312c33877107383c1c Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Fri, 23 Jun 2023 17:21:21 +0300 Subject: [PATCH] skip web viewer caches --- apps/red-ui/ngsw-config.json | 16 ++++++++++++++-- package.json | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/apps/red-ui/ngsw-config.json b/apps/red-ui/ngsw-config.json index a8747d956..785319e45 100644 --- a/apps/red-ui/ngsw-config.json +++ b/apps/red-ui/ngsw-config.json @@ -6,7 +6,14 @@ "name": "app", "installMode": "prefetch", "resources": { - "files": ["/favicon.ico", "/manifest.webmanifest", "/*.css", "/*.js"] + "files": [ + "/favicon.ico", + "/manifest.webmanifest", + "/*.css", + "/*.js", + "!/assets/wv-resources/core/webviewer-core.min.js", + "!/assets/wv-resources/ui/webviewer-ui.min.js" + ] } }, { @@ -14,7 +21,12 @@ "installMode": "lazy", "updateMode": "prefetch", "resources": { - "files": ["/assets/**", "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"] + "files": [ + "/assets/**", + "!/assets/wv-resources/core/webviewer-core.min.js", + "!/assets/wv-resources/ui/webviewer-ui.min.js", + "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" + ] } } ] diff --git a/package.json b/package.json index 5a5938c75..177c42876 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "3.988.63", + "version": "3.988.64", "private": true, "license": "MIT", "scripts": {