improve runtime caching pattern
This commit is contained in:
+5
-1
@@ -91,7 +91,11 @@ export default defineConfig(async () => {
|
|||||||
],
|
],
|
||||||
runtimeCaching: [
|
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'
|
handler: 'NetworkFirst'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user