Sunday, September 8, 2024

Force browser to reload cached css files

Top hits for this on Google are useless stuff like Shift+Ctrl+Reload which doesn't work on my browsers.

Here is the actual fix: https://stackoverflow.com/questions/3466989/what-does-appending-v-1-to-css-and-javascript-urls-in-link-and-script-tags-do

You just append the ?v=x.x.x in your HTML and it magically gets the browser to reload the CSS file.

Pretty annoying that that isn't the top result on Google.

No comments:

Post a Comment