I was reading this answer about how you can append the hash of a resource, such as a JS or CSS file to the filename, so that your browser only downloads it if it's changed, otherwise a cached version is used.
Why would you want to use this over the HTTP header Cache-Control: no-cache
?
Using a hash in the filename means you need to make sure the HTML containing the <script src="myscript.someHash.js"></script>
tags is never cached.
Why not allow the HTML (and all other resources) to be cacheable using no-cache
?