there was a slash in the url that should not have been there, removing it fixed the api call code from 307 back to 200

This commit is contained in:
csawatzky 2025-10-15 14:12:53 -06:00
parent bd7afb86c2
commit aea654fc18
2 changed files with 3 additions and 4 deletions

View file

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