I used to think this was an issue with Google Chrome, when I would struggle to get pages to refresh with their latest CSS styles — despite me having the option set to disable cache when inspector tools are open.
More recently however, I've noticed I get this problem with php files too, e.g. WordPress templates files. I will often make changes to them, upload via FTP and have to refresh my browser multiple times in order to see the changes.
Tonight things seem unusually bad. I've even tried renaming the folder for the theme that I am building, which should break everything... but my whole website is loading as normal as though nothing has changed. It is so bad at refreshing that I can't even break it!
I have a template file called
contact.php which I can't get to refresh to the latest version... I've also tried renaming the file in order to break it, but WP is still loading the page with that template.
I've even tried
get_page_template() which confirms that it is the
contact.php that is applied to the page despite me having renamed it on the server
Could this be an issue with my hosting company? or should I look at caching plugins?