I am experimenting doing some Rust webdev with axum and Maud, and I set up a hot reloading workflow with the help of Watchexec and tower-livereload. However, I noticed that when hot reload happen, the CSS doesn’t reload at well because of browser caching, and I need to do Ctrl+Shift+R to force flush the cache.

I find this reddit post where one commenter suggesting using a cache busting param to the URL. For example, /styles/global.css?m=12345678 where 12345678 is a timestamp that change every single time.

Of course, all those hacks (and also the hot-reloading setup) should only be used during development.