change: sw caching
This commit is contained in:
parent
b1daa7e64f
commit
8ec3b04824
1 changed files with 8 additions and 0 deletions
|
@ -58,6 +58,14 @@ export default defineConfig({
|
|||
},
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: /^\/api\//,
|
||||
handler: "NetworkFirst",
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
|
|
Loading…
Add table
Reference in a new issue