Guys, I encountered such a very strange problem: I open, for example, the css file on the server (xampp) in the htdocs folder with the help of any editor (I have a sublim), I edit it, I save, I open the php file with a page in Google, but no changes in Devtulsa are not visible, as if I did not write anything there. With what it can be connected ? Just in case, win 10.
3 answers
Ctrl + F5 Reload page with resetting browser cache
The browser caches script files and styles. They can be updated by pressing ctrl + f5, but site visitors do not know about it and the site for them to look old or broken. You can solve this problem by adding the GET parameter to the link to the file where it is connected on the page. This will force the browser to download the file for a new one, because for it is another link and another file, and the GET parameter itself will not affect the work in any way.
<link href="css/app.css?v=1" rel="stylesheet"> In order not to change the parameter whenever you make changes to the file, you can change the version automatically. In its simplest form, this is:
<link href="css/app.css?v=<?=filemtime(css/app.css);?>" rel="stylesheet"> The filemtime () function returns the time when the file was last modified, and each time you save, you will have a new link to the file. The same goes for script files.
Most often this is caching, try to see the changes in another browser.