Jump to content


Refreshing a web site

  • Please log in to reply
6 replies to this topic

#1 mmc6e



  • Members
  • PipPip
  • 11 posts

Posted 04 February 2013 - 03:09 PM

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.

#2 ScrewLooseSalad


    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 04 February 2013 - 05:24 PM

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

#3 mmc6e



  • Members
  • PipPip
  • 11 posts

Posted 04 February 2013 - 05: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 Jessica


    This is not my name.

  • Staff Alumni
  • 8,982 posts
  • LocationDallas, TX
  • Age:26

Posted 04 February 2013 - 05: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!!

#5 mmc6e



  • Members
  • PipPip
  • 11 posts

Posted 05 February 2013 - 04:19 AM

Thanks for the information. Being fairly new at this how would I code that?

#6 kicken


    Wiser? Not exactly.

  • Gurus
  • 2,898 posts
  • LocationBonita, FL

Posted 05 February 2013 - 06:07 AM

Have a read through this page:
Caching Tutorial

Recycle your old CD's, don't trash them!
Did I help you out? Feeling generous? I accept tips via Paypal or Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7

#7 mmc6e



  • Members
  • PipPip
  • 11 posts

Posted 05 February 2013 - 03:55 PM

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