Files which change between releases but have plain names like netstats.min.css can be cached (e.g. by Cloudflare) which causes a mess when a new version is deployed and the old cached files are still served. To avoid this problem, our assets should include some kind of hash of the content in the filename, e.g. netstats.afg34ebc.min.css. This should be possible to do with grunt, and should probably apply to all files under css/, js/, fonts/, and images/.
Files which change between releases but have plain names like
netstats.min.css
can be cached (e.g. by Cloudflare) which causes a mess when a new version is deployed and the old cached files are still served. To avoid this problem, our assets should include some kind of hash of the content in the filename, e.g.netstats.afg34ebc.min.css
. This should be possible to do withgrunt
, and should probably apply to all files undercss/
,js/
,fonts/
, andimages/
.