So I'm building a web application using HTMl CSS and PHP, and sometimes when I make changes to the css file, the web doesn't react to it and I can even delete the whole file and still doesn't change a thing in the browser and I have to copy everything from the css file into a different css file and use that one and after that it works but it often takes only a few minutes and i have to change it back so currently i have style.css and styles.css and depending on the situation i use either the first one or the other one but its annoying, I think it could be something with the server I'm running it on localhost using XAMPP. Thanks for any suggestions.
Your problem come from browser cache.
There are many solutions for this:
If it's occur to production environment:
If it's just about developing in local environment:
network tab
in browser devtool, and check Disable cache
.Disable cache
. You should stick with empty cache and hard reload