From 54d62a3ebff6b8accdd1b19729dcf3b718f2c8cf Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 8 Dec 2021 15:35:51 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4workbox=E9=85=8D?= =?UTF-8?q?=E7=BD=AE,=20=E4=BF=AE=E6=94=B9plugins=E7=9A=84=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/build/webpack.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/build/webpack.config.ts b/web/build/webpack.config.ts index b9b6ef71..d8a568a2 100644 --- a/web/build/webpack.config.ts +++ b/web/build/webpack.config.ts @@ -111,7 +111,7 @@ const plugins: Configuration['plugins'] = [ { // 匹配内置 plugins 以加速 urlPattern: workboxPluginPattern, - handler: 'CacheFirst', + handler: 'StaleWhileRevalidate', options: { cacheName: 'builtin-plugins', expiration: {