improve runtime caching pattern

This commit is contained in:
MaysWind
2023-07-26 23:46:12 +08:00
parent 831952806d
commit e1bb97a1db
+5 -1
View File
@@ -91,7 +91,11 @@ export default defineConfig(async () => {
],
runtimeCaching: [
{
urlPattern: /.*\/(mobile\/|desktop\/|index\.html|mobile\.html|desktop\.html)/,
urlPattern: /.*\/(mobile|mobile\/|desktop|desktop\/)$/,
handler: 'NetworkFirst'
},
{
urlPattern: /.*\/(index\.html|mobile\.html|desktop\.html)/,
handler: 'NetworkFirst'
},
{