flemingmike Posted August 26, 2010 Share Posted August 26, 2010 hello, i have a page that parses a string from espn and i have a style sheet that makes it refresh every 2 minutes. the thing that is buggin me is that when i load the page it loades with the last cached data so i have to wait 2 minutes for the info to update. is there any way to force the current content on load, and keep my refresh every 2 minutes still? thanks Link to comment https://forums.phpfreaks.com/topic/211817-refresh-on-load/ Share on other sites More sharing options...
flemingmike Posted August 26, 2010 Author Share Posted August 26, 2010 i just found this. i think it will work <?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past ?> Link to comment https://forums.phpfreaks.com/topic/211817-refresh-on-load/#findComment-1104111 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.