fix: 移除runtimeCaching配置解决PWA no-response错误
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -30,12 +30,6 @@ export default defineConfig(({mode}) => {
|
||||
navigateFallbackDenylist: [/^\/api\//, /^\/x-/, /^\/access/],
|
||||
skipWaiting: true,
|
||||
clientsClaim: true,
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: ({url}) => !url.pathname.startsWith('/api/') && !url.pathname.startsWith('/x-') && !url.pathname.startsWith('/access'),
|
||||
handler: 'NetworkOnly',
|
||||
},
|
||||
],
|
||||
},
|
||||
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'mask-icon.svg'],
|
||||
manifest: {
|
||||
|
||||
Reference in New Issue
Block a user