Refresh Problem

Is there a way to force a visitors browser to refresh when i update my page.  It gets updated quite a bit and I don't want my visitors to have to press the refresh button every time the page changes.
sdickensAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bigbedCommented:
Something like this at the top of your HTML:
<META HTTP-EQUIV="refresh"; content="10; url=<MY_URL>">

If it is the same page which is to be refreshed then something like:
<META HTTP-EQUIV="refresh"; content="10;">
will do I think.
0
bigbedCommented:
Oops!
Forgot to say that the '10' in the
content="10; ....." is the number of seconds between refreshes.
Bear in mind that if this is at the top of every page, then *every* page will keep refreshing itself every 10 seconds... (could get annoying)
0
PalamedesCommented:
Actually no bigbed, I don't think that is what he wants...The problem with your solution is, what if you don't want someone to be completely redirected to another page, but rather would like the page to be updated, ONLY when the content has changed...  You dont want the user to view the cached version but rather the new one..

Here is how..

<META http-equiv="Expires" content="Tue, 20 Aug 1996 14:25:27 GMT">
will result in the HTTP header:

Expires: Tue, 20 Aug 1996 14:25:27 GMT

This can be used by caches to determine when to fetch a fresh copy of the associated document.  So, if you update your page every day, you can set the Expires date/time to the next day.  Or whenever you plan to update it.  

If you want, you can set it to Jan 1st 1970, so that evertime someone hits your site it will grab a new copy as opposed to relying on the cached version.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sdickensAuthor Commented:
Thanks a bunch!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.