Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to refresh only once 1

Status
Not open for further replies.

keysol

Programmer
Joined
Feb 27, 2001
Messages
81
Location
CA
I've learned how to insert a tag to refresh a web page at a certain interval. I've used it and set the interval at 30 seconds. This is to insure that previous visitors to the site load the most recent page. (I've included a pop-up with news of a current event)This is a problem because if the viewer stays on the page for an extended period of time the page keeps refreshing with the pop-up, which can be a pain to close all the time.

So, how does one force a refresh of updated pages only once and not at a set interval since a previous visit ?

Gerr
 
Hi

Add these meta tags:

Code:
<META HTTP-EQUIV=&quot;expires&quot; CONTENT=&quot;0&quot;> 
<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>

Which should override the caching of the page in the browser, so that a new request is made whenever the page is viewed. This should remove the need for the refresh tag.

There are other asp based fixes for this as well, but I have to assume you are using html only.

[fish] Derren
[Mediocre talent - spread really thin]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top