Tweaking cache regexes

This commit is contained in:
Jeff Avallone 2018-02-25 17:33:55 -05:00
parent 9c9d3141e9
commit e28fd69c73

View File

@ -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'
}
]