mmc6e Posted February 4, 2013 Share Posted February 4, 2013 I'mnot sure if this has been addressed here before but I have a web site that is updated regularly. After an update I need to press F5 for a refresh to get the new info as opposed to the cached version. This is fine for me but many of the members who follow this page are unfamiliar with this. Is there anyway that I can have the updated pages automaticlly refresh themselves. Quote Link to comment https://forums.phpfreaks.com/topic/274016-refreshing-a-web-site/ Share on other sites More sharing options...
ScrewLooseSalad Posted February 4, 2013 Share Posted February 4, 2013 how frequently, and how intrusively? the first thing that comes to mind is: <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html"> but that is probably not the sort of thing you want Quote Link to comment https://forums.phpfreaks.com/topic/274016-refreshing-a-web-site/#findComment-1410072 Share on other sites More sharing options...
mmc6e Posted February 4, 2013 Author Share Posted February 4, 2013 Thanks for the reply. What I'm trying to do is to have certain pages of my site to be forced to refresh themselves on opening. When these pages are updated some members do not get the updated version but instead get the older cached version. Many of them are unaware that an update has occurred. Quote Link to comment https://forums.phpfreaks.com/topic/274016-refreshing-a-web-site/#findComment-1410077 Share on other sites More sharing options...
Jessica Posted February 4, 2013 Share Posted February 4, 2013 You need to update the HTML headers on the page to let the browser know its a new version. Quote Link to comment https://forums.phpfreaks.com/topic/274016-refreshing-a-web-site/#findComment-1410079 Share on other sites More sharing options...
mmc6e Posted February 5, 2013 Author Share Posted February 5, 2013 Thanks for the information. Being fairly new at this how would I code that? Quote Link to comment https://forums.phpfreaks.com/topic/274016-refreshing-a-web-site/#findComment-1410154 Share on other sites More sharing options...
kicken Posted February 5, 2013 Share Posted February 5, 2013 Have a read through this page: Caching Tutorial Quote Link to comment https://forums.phpfreaks.com/topic/274016-refreshing-a-web-site/#findComment-1410163 Share on other sites More sharing options...
mmc6e Posted February 5, 2013 Author Share Posted February 5, 2013 Having read the Caching Tutorial I am more confuese than ever. Quote Link to comment https://forums.phpfreaks.com/topic/274016-refreshing-a-web-site/#findComment-1410248 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.