Skip to content

Commit

Permalink
add more runtime caching pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Jul 29, 2023
1 parent d3e1acd commit 6e41668
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ export default defineConfig(async () => {
urlPattern: /.*\/(mobile|mobile\/|desktop|desktop\/)$/,
handler: 'NetworkFirst'
},
{
urlPattern: /.*\/(mobile|mobile\/)#!\//,
handler: 'NetworkFirst'
},
{
urlPattern: /.*\/(desktop|desktop\/)#\//,
handler: 'NetworkFirst'
},
{
urlPattern: /.*\/(index\.html|mobile\.html|desktop\.html)/,
handler: 'NetworkFirst'
Expand Down

0 comments on commit 6e41668

Please sign in to comment.