I\'m working on some universal solution for problem with static files and updates in it.
Example: let\'s say there was site with /static/styles.css
file - a
How about you always have a URL Parameter in your URL with a version and whenever you have a major release you change the version in your URL Parameter. Even in the DNS. So if www.yourwebsite.com
loads up www.yourwebsite.com/index.html?version=1.0
then after the major release the browser should load www.yourwebsite.com/index.html?version=2.0
I guess this is similar to your solution 1. Instead of tracking files can you track whole directories? For example ratehr than /static/style/css?v=2.0
can you do /static-2/style/css
or to make it even granular /static/style/cssv2/
.