Weather-Watch.com

Weather and the Internet => Creating Weather Web Sites => Topic started by: cyclone on November 13, 2004, 10:00:30 PM

Title: Refresh Tag
Post by: cyclone on November 13, 2004, 10:00:30 PM
Hello all,
I'm currently using the refresh tag, <meta http-equiv="refresh" content="50"> for my page at www.gorgecreekorchards.com.au/wx.html (http://www.gorgecreekorchards.com.au/wx.html) but this forces the whole page, including header, to go white and refresh, and sometimes stays blank.
Could someone tell me how to refresh only new content.
Thanks
Cyclone
Title: Re: Refresh Tag
Post by: TNETWeather on November 13, 2004, 11:28:06 PM
A lot depends on the browser being used, and some of it can depend on the server.  Some browsers will check what the server is offering and no reload something they think they have that is already the same.

However, to update content, you normally have to update the page.

I typically don't use a refresh time out causing the page to refresh itself but rather set a tag so that when the user does a refresh they get a new page.

<META HTTP-EQUIV="expires" CONTENT="0">

Tells the browser not to use the cache for items, but reget them.