issue persists, trying a modified rule

This commit is contained in:
csawatzky 2025-10-15 12:55:43 -06:00
parent 8dfe72e41c
commit 977771ef9f

View file

@ -35,8 +35,8 @@ export default defineConfig({
}, },
}, },
{ {
//this forces all api calls to go through the network // 🚀 Corrected rule: match full API domain
urlPattern: ({ url }) => url.pathname.startsWith('/v1/'), urlPattern: ({ url }) => url.origin === 'https://stagingapi.brandxtech.ca' && url.pathname.startsWith('/v1/'),
handler: 'NetworkOnly', handler: 'NetworkOnly',
options: { options: {
cacheName: 'api-cache', cacheName: 'api-cache',