gochain / netstats

GNU General Public License v3.0
4 stars 4 forks source link

Unique asset filenames #53

Open jmank88 opened 5 years ago

jmank88 commented 5 years ago

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/.