From 977771ef9f2a1b8156b5284827a293daf7c24b89 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Wed, 15 Oct 2025 12:55:43 -0600 Subject: [PATCH] issue persists, trying a modified rule --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index acc8cb4..d69c8d5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,8 +35,8 @@ export default defineConfig({ }, }, { - //this forces all api calls to go through the network - urlPattern: ({ url }) => url.pathname.startsWith('/v1/'), + // 🚀 Corrected rule: match full API domain + urlPattern: ({ url }) => url.origin === 'https://stagingapi.brandxtech.ca' && url.pathname.startsWith('/v1/'), handler: 'NetworkOnly', options: { cacheName: 'api-cache',