diff --git a/apps/red-ui/ngsw-config.json b/apps/red-ui/ngsw-config.json index 3e250575f..53fbcb039 100644 --- a/apps/red-ui/ngsw-config.json +++ b/apps/red-ui/ngsw-config.json @@ -17,5 +17,16 @@ "files": ["/assets/**", "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"] } } + ], + "dataGroups": [ + { + "name": "file-downloads", + "urls": ["/download/original/**"], + "cacheConfig": { + "maxAge": "7d", + "maxSize": 1000, + "strategy": "performance" + } + } ] } diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html index 15f89db76..e7780c0ba 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html @@ -1,4 +1,4 @@ -
+