diff --git a/webpack.prod.js b/webpack.prod.js index 59185b0..6832459 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -16,7 +16,21 @@ module.exports = [ }), new WorkboxPlugin({ clientsClaim: true, - skipWaiting: true + skipWaiting: true, + runtimeCaching: [ + { + urlPattern: new RegExp('https://licensebuttons.net'), + handler: 'staleWhileRevalidate' + }, + { + urlPattern: new RegExp('http://fonts.googleapis.com'), + handler: 'staleWhileRevalidate' + }, + { + urlPattern: new RegExp('http://fonts.gstatic.com'), + handler: 'staleWhileRevalidate' + } + ] }) ] }),