Skip to content

Commit

Permalink
revert: 回退 workbox 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 29, 2024
1 parent 57b5b53 commit f7b588c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.117",
"version": "2.14.118",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
6 changes: 2 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
],
},
workbox: {
navigateFallbackDenylist: [/(^|\/.+)\/(api|download)\/.+/],
// globPatterns: ['**/*.{css,js,gz,eot,html,svg,png,ico,ttf,woff2}'],
runtimeCaching: [
{
urlPattern: /^https?:\/\/.+?\/(?:api|download)\/.+/,
handler: "NetworkOnly",
},
{
urlPattern: /.*\.(?:js|css|gz|html|json)/i, // json
handler: 'CacheFirst',
Expand Down

0 comments on commit f7b588c

Please sign in to comment.