From 904c149ed1a9cf2591b2c5a53b2059e977edf77e Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 22 Apr 2021 19:41:46 +0530 Subject: [PATCH] Add sw caching for logo/favicon. --- vue.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 83db769a..68a6dee3 100644 --- a/vue.config.js +++ b/vue.config.js @@ -9,7 +9,11 @@ module.exports = { workboxOptions: { navigateFallback: 'index.html', skipWaiting: true, - importWorkboxFrom: 'local' + importWorkboxFrom: 'local', + runtimeCaching: [{ + urlPattern: /\.(?:png|svg|ico)$/, + handler: 'CacheFirst', + }], } } }