From fd6d1cbbf885e90c1ca0c6c3e9bda2b7c7d999dd Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 25 Feb 2024 11:49:45 +0100 Subject: [PATCH] impr(hosting): add precaching to static pages --- frontend/vite.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index f68f35bee..00a434047 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -160,7 +160,14 @@ const BUILD_CONFIG = { clientsClaim: true, cleanupOutdatedCaches: true, globIgnores: ["**/.*"], - globPatterns: ["index.html"], + globPatterns: [ + "index.html", + "404.html", + "email-handler.html", + "privacy-policy.html", + "security-policy.html", + "terms-of-service.html", + ], runtimeCaching: [ { urlPattern: ({ request, url }) => {