From 8dfe72e41cd4dedc06d1f2a161ede1a1dac3d9dc Mon Sep 17 00:00:00 2001 From: csawatzky Date: Wed, 15 Oct 2025 12:16:42 -0600 Subject: [PATCH] adding section to the runtimeCaching in the vite config that will force api calls to use the network rather than any cached responses --- vite.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 8161881..acc8cb4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -34,6 +34,14 @@ export default defineConfig({ cacheName: 'assets-cache', }, }, + { + //this forces all api calls to go through the network + urlPattern: ({ url }) => url.pathname.startsWith('/v1/'), + handler: 'NetworkOnly', + options: { + cacheName: 'api-cache', + }, + }, ] }, }),