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:
parent
bd7afb86c2
commit
aea654fc18
2 changed files with 3 additions and 4 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue