issue persists, trying a modified rule
This commit is contained in:
parent
8dfe72e41c
commit
977771ef9f
1 changed files with 2 additions and 2 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue