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.43k stars 3.02k forks source link

main.css and main.min.js are not served from cached #957

Closed kramer888 closed 6 years ago

kramer888 commented 6 years ago

Hi

I downloaded the repo and installed everything and ran the app (gulp serve). So far it's ok. The thing the I don't understand is even though I see in: service-worker.js var PrecacheConfig = [["scripts/main.min.js","34a00bde0733369f65ba9b3c8f750784"],["scripts/sw/runtime-caching.js","e3e34dcb62b5d62453b9215961585488"],["scripts/sw/sw-toolbox.js","2770efb889cc10c4de88d0b746c2a13c"],["styles/main.css","b21781ecf1bf7209ea6dde54d9482126"]];

main.css and main.min.js aren't served from cache when going offline.

github_issue_pictures

kramer888 commented 6 years ago

My bad - I should have used serve:dist.