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', + }, + }, ] }, }),