Forum Moderators: open

Message Too Old, No Replies

automatic reloads

How do you do make sure that the user gets the newest content?

         

laurieheron

11:34 pm on Mar 21, 2002 (gmt 0)



I made a very BIG mistake yesterday. I have a site that's under construction, and I accidently uploaded the index file from that site to my main site. Of course, I fixed the mistake. But here's my problem now. How do I make sure that someone who went to my site for the first time during that time period gets the new site instead of the one stored in the history folder? Which of course brings up the bigger question: How do I make sure that when I make updates they get the updated site rather than the one in their history folder? It seems like a stupid, obvious question, but I can't seem to find the answer. I looked into automatic reloads, but I could only find ones that refresh the page periodically, and I don't want to do that. I only want to make sure that it gets reloaded the first time. Any help would be appreciated. Thanks,

Laurie

Purple Martin

11:41 pm on Mar 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think you can do anything about people's browser settings (how often it checks for newer versions), and proxy caches will also cause the same problems and you can't do anything about those either. Sorry! :(

If I'm wrong and anyone knows differently, I'd love to hear about it.

keyplyr

11:48 pm on Mar 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't know how powerful this is, but it does seem to force the brower (the ones that support it) to check for an updated version of the page:

<meta http-equiv="Pragma" content="no-cache">

note: It goes <head> here </head>

[added]
Here's a JavaScript that will reload the page once:

[thiefware.com...]

Just choose the version that does not redirect the user.
[/added]

laurieheron

12:14 am on Mar 22, 2002 (gmt 0)



I LOVE this forum! Thanks to both purple martin and keyplyr for your help. I will play around with both of the methods that you have described and see if that solves my problem. (Of course, paying more attention to the files I upload could be a pretty good idea as well.)

Thanks again.

keyplyr

3:04 am on Mar 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Correction: Here is the exact page where the script is:

[thiefware.com...]