dynamic php pages not refreshing, WTF??

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 28
Joined: Tue Jan 21, 2003 9:31 pm

Sat Feb 01, 2003 5:06 am

ive got a sit where stuff on pages change when you update it from another page on the site.
On my computer if i change the page from the admin panel and go back to the other page and hit refresh it will reflect the changes that i made form the admin page.
But on a mates computer if i do the same thing, he does not see the changes i made on the admin page, the old data is still displayed no matter how many times he presses refresh, i even checked in the database and the data has changed, ive closed browser and reopened and still the old data remains. I have the meta tag of no-cache in the head of the php script and if you view the html of the page it is still there saying do not cache this page.
WTF is going on here?? why doesnt the data change on his computer but does on mine?
[flash width=300 height=100 loop=true]http://newbieslair.baselair.com/iceman.swf[/flash]

Administrator Newbieslair http://www.newbieslair.com

User avatar
Joan Garnet
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars

Sat Feb 01, 2003 3:01 pm

Try using this:

Code: Select all

header("Expires: ".gmdate("D, d M Y H:i:s")."GMT"); 
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

Put it on the very top of the page.

Post Reply