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

Cache busting #934

Open jetxr opened 7 years ago

jetxr commented 7 years ago

Why don't the generated assets have hashes to bust the cache after deployments? Also what is the recommended way to implement this in WSK?

ie. main.24b23h4.js

heavymery commented 7 years ago

I have the same question, but it seems that WSK solve this by Service Worker Pre-caching? 🤔

image

ghost commented 7 years ago

It appears that caching is done very well, but no cache busting of JS and CSS files. When I deploy a new version of my site, I have to erase the cache of my browser (Chrome). Doing only a page refresh keeps loading the old files.