From e28fd69c73cdde4f5bd400d27cec892cd1e5b54d Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 25 Feb 2018 17:33:55 -0500 Subject: [PATCH] Tweaking cache regexes --- webpack.prod.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.prod.js b/webpack.prod.js index 6832459..20a3f3d 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -19,15 +19,15 @@ module.exports = [ skipWaiting: true, runtimeCaching: [ { - urlPattern: new RegExp('https://licensebuttons.net'), + urlPattern: /https?:\/\/licensebuttons\.net/, handler: 'staleWhileRevalidate' }, { - urlPattern: new RegExp('http://fonts.googleapis.com'), + urlPattern: /https?:\/\/fonts\.googleapis\.com/, handler: 'staleWhileRevalidate' }, { - urlPattern: new RegExp('http://fonts.gstatic.com'), + urlPattern: /https?:\/\/fonts\.gstatic\.com/, handler: 'staleWhileRevalidate' } ]