Revert "* fix: 🐛 Enabling workbox to cache webfonts and fonts-stylesheets, add local fonts for UMD build (#906)" (#961)
This reverts commit 69b96478cb.
This commit is contained in:
1 parent
8bb730318a
commit
ae26904885
11 files changed
+38
-134
No files matched your search
@@ -102,32 +102,6 @@ module.exports = (env, argv) => {
|
||||
swDest: 'sw.js',
|
||||
clientsClaim: true,
|
||||
skipWaiting: true,
|
||||
exclude: [
|
||||
new RegExp('^https://fonts.googleapis.com/'),
|
||||
new RegExp('^https://fonts.gstatic.com/'),
|
||||
],
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: new RegExp('^https://fonts.googleapis.com/'),
|
||||
handler: 'StaleWhileRevalidate',
|
||||
options: {
|
||||
cacheName: 'google-fonts-stylesheets',
|
||||
},
|
||||
},
|
||||
{
|
||||
urlPattern: new RegExp('^https://fonts.gstatic.com/'),
|
||||
handler: 'CacheFirst',
|
||||
options: {
|
||||
cacheName: 'google-fonts-webfonts',
|
||||
|
||||
// Only cache 30 images / one year.
|
||||
expiration: {
|
||||
maxAgeSeconds: 60 * 60 * 24 * 365,
|
||||
maxEntries: 30,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
// https://webpack.js.org/configuration/dev-server/
|
||||
|
||||
Reference in new issue
Block a user