Keywords: LAMP/MAMP/WAMP - Windows - Technical issue - Other
Not sure what code I should put in here. The problem is simply that I edit some text either in the HTML or PHP and reload the page "localhost/mypage" and the changes don't show.
Every now and then it changes, but I have no idea what conditions make that happen. Sometimes it notices the change and sometimes it doesn't. At first I thought it was related to include files, but it doens't seem to be.
I've tried editing files on site1 and site 2 (both subfolders of localhost) and the behavior is consistent.
I can literally write something as simple as:
<?php echo 'this';?>
See it on the page after load, then change it to
<?php echo 'that';?>
And I'll still see "this" on the page.
I suspect it's some kind of caching problem, but I've put this at the top of all my files:
header('Expires: Sun, 01 Jan 2014 00:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
Doesn't make any difference at all. This only started when I upgraded from Bitnami 7.0.31-1. I tried the newest one and also downgraded to 7.2.24-0 and they're the same. No idea what's going on. Don't even know what to start.
What do you do when the site doesn't respond to simple text changes?