Page expires when going back to previous page.
Posted on 2003-11-27
I am in a catch-22 because my first problem was that my page was not updating and always display out dated infomation. I correct my problem by placing
header("Cache-control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); # Past date
at the beginning of every page. Now my problem now is that when I use the back button to return to the previous page, it always display an expired page and I am force to use the refresh button. Is there any way to get around this? I don't have this problem using ASP, but php has been giving me problems all the while. It's too late for me to convert to ASP and I really love php. I hope it is because I am doing something wrong.