fix(front): try to correct crash on ios
This commit is contained in:
@@ -211,7 +211,11 @@ module.exports = defineConfig(({ command, mode }) => {
|
||||
}
|
||||
},
|
||||
{
|
||||
urlPattern: /^https?:\/\/.*\/api\/.*/i,
|
||||
// Intercepter uniquement les requêtes GET pour l'API
|
||||
urlPattern: ({ url, request }) => {
|
||||
const urlString = url.href || url.toString()
|
||||
return /^https?:\/\/.*\/api\/.*/i.test(urlString) && request.method === 'GET'
|
||||
},
|
||||
handler: 'NetworkFirst',
|
||||
options: {
|
||||
cacheName: 'api-cache',
|
||||
|
||||
Reference in New Issue
Block a user