I made a simple website in PHP. How do I make sure that after making changes to the files on the server (for example css files) the users visiting the site will see it exactly the way it was edited to look? At the moment when i change css files the user has to clear the site's data (hard refresh) and only then the changes are visible.
I tried changing the names of css files every time I edit them so that the browser has to load the file and not use an existing one in cache, but that only seems to work on desktop. Mobile device browsers for some reason do not load the new file - instead they act as if there is no css file at all.
I also tried this: How to clear browser cache with php? But to no effect.
Sorry if I didn't provide enough information or sth, I'm new here. Please guide me :)