google / web-starter-kit

Web Starter Kit - a workflow for multi-device websites
http://developers.google.com/web/starter-kit
Apache License 2.0
18.44k stars 3.02k forks source link

MDL Runtime Caching Currently broken #925

Open gauntface opened 7 years ago

gauntface commented 7 years ago

I just tried out the master build and noticed that the service worker caching for MDL is no longer working.

Requests are made for https://fonts.googleapis.com/icon?family=Material+Icons, https://code.getmdl.io/1.2.1/material.indigo-pink.min.css, https://code.getmdl.io/1.2.1/material.min.js which aren't covered by the scripts/sw/runtime-caching.js rule.

gauntface commented 7 years ago

This regex seems to work:

/\.(?:googleapis|getmdl)\.(?:com|io)/
zomars commented 7 years ago

I'm having the same issue. I've tried your regex @gauntface but still doesn't cache it.