Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 05:29 PM
Will Appleby
Guest
 
Posts: n/a
Default Auto refresh

I'm trying to create a web page that will refresh each time someone
visits so they always see an updated version. I've tried using

<META HTTP-EQUIV="refresh" CONTENT=";URL=index.html">

in the HTML code, but it doesn't seem to work. If I add time value
after CONTENT= it will refresh after that time, but I only want the
page to refresh once.

Any help would be appreciated.

Will.
  #2  
Old July 20th, 2005, 05:29 PM
Safalra
Guest
 
Posts: n/a
Default Re: Auto refresh

gw_appleby@hotmail.com (Will Appleby) wrote in message news:<7b17adb9.0311040312.53a38fde@posting.google. com>...[color=blue]
> I'm trying to create a web page that will refresh each time someone
> visits so they always see an updated version.[/color]

This happens anyway - browsers ask the server the timestamp of its
version, compare it with the timestamp of the version in the cache,
and download the new one if necessary.
[color=blue]
> I've tried using
>
> <META HTTP-EQUIV="refresh" CONTENT=";URL=index.html">[/color]

That won't work for this purpose. And don't use that code anyway, it
breaks the back button.

--- Stephen Morley ---
http://www.safalra.com
  #3  
Old July 20th, 2005, 05:29 PM
Jim Dabell
Guest
 
Posts: n/a
Default Re: Auto refresh

Will Appleby wrote:
[color=blue]
> I'm trying to create a web page that will refresh each time someone
> visits so they always see an updated version.[/color]

You don't do that with HTML. You do that by having your server respond to
requests with the correct HTTP headers.

<URL:http://www.mnot.net/cache_docs/>

--
Jim Dabell

  #4  
Old July 20th, 2005, 05:29 PM
Jane Withnolastname
Guest
 
Posts: n/a
Default Re: Auto refresh

On 4 Nov 2003 03:12:07 -0800, gw_appleby@hotmail.com (Will Appleby)
wrote:
[color=blue]
>I'm trying to create a web page that will refresh each time someone
>visits so they always see an updated version. I've tried using
>
><META HTTP-EQUIV="refresh" CONTENT=";URL=index.html">
>
>in the HTML code, but it doesn't seem to work. If I add time value
>after CONTENT= it will refresh after that time, but I only want the
>page to refresh once.
>
>Any help would be appreciated.
>
>Will.[/color]

I've always had good results with

<META HTTP-EQUIV="Expires" CONTENT="-1">

Obviously, the other posters here disagree with using META tags for
this purpose, but if you cannot access your HTTP headers, it seems to
me to be the next best thing....
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles