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.
Refreshing a web site
Started by mmc6e, Feb 04 2013 10:09 AM
6 replies to this topic
#1
Posted 04 February 2013 - 10:09 AM
#2
Posted 04 February 2013 - 12:24 PM
how frequently, and how intrusively?
the first thing that comes to mind is:
but that is probably not the sort of thing you want
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
#3
Posted 04 February 2013 - 12:42 PM
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.
#4
Posted 04 February 2013 - 12:53 PM
You need to update the HTML headers on the page to let the browser know its a new version.
My goal in replying to posts is to help you become a better programmer, including learning how to debug your own code and research problems. For that reason, rather than posting the solution, I reply with tips and hints on how to find the solution yourself. See below for useful links when you get stuck.
How to Get Good Help: How to Ask Questions | Don't be a help vampire
Debugging Your Code: Debugging your SQL | What does a php function do? | What does a term mean? | Don't see any errors?
Things You Should Do: Normalize Your Data | use print_r() or var_dump()
Lulz: "Functions should not have side effects." - trq
Please take a look at my new PHP/Web Dev blog: The Web Mason - Thanks!!
How to Get Good Help: How to Ask Questions | Don't be a help vampire
Debugging Your Code: Debugging your SQL | What does a php function do? | What does a term mean? | Don't see any errors?
Things You Should Do: Normalize Your Data | use print_r() or var_dump()
Lulz: "Functions should not have side effects." - trq
Please take a look at my new PHP/Web Dev blog: The Web Mason - Thanks!!
#5
Posted 04 February 2013 - 11:19 PM
Thanks for the information. Being fairly new at this how would I code that?
#6
Posted 05 February 2013 - 01:07 AM
Recycle your old CD's, don't trash them!
Did I help you out? Feeling generous? I accept tips via Paypal or Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7
Did I help you out? Feeling generous? I accept tips via Paypal or Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7
#7
Posted 05 February 2013 - 10:55 AM
Having read the Caching Tutorial I am more confuese than ever.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












