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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CF question 3 (about refresh)

Status
Not open for further replies.

volcano

Programmer
Aug 29, 2000
136
HK
Hello again, this question may not be fully related to Coldfusion.

The problem is how can i refresh a page ONCE
automatically when the page is loaded. It's because the META
tag with "expires" or "Pragma" attributes, or CFHEADER still can't ensure the page is not cached.

Thank you very much!
 
<meta http-equiv=&quot;refresh&quot; content=&quot;0&quot;>

This will refresh the page right away.

 
Thanks InternetOverlord for your reply. I once tried this method, but it seems it will refresh forever.. how can I refresh only once?

Thanks a lot!
Volcano
 
I usually just pass in a unique value for each page that I submit to in order to avoid the caching issue. But I do know that there's another tag to use that's both IE and Netscape compatible:

<META HTTP-EQUIV=&quot;REFRESH&quot; CONTENT=&quot;0; URL=page_name.cfm&quot;>

This will refresh once and only once and it should not do otherwise. Unless your page is hanging for whatever reason, this will do the trick. [sig]<p> <br><a href=mailto:aberman@thebiz.net>aberman@thebiz.net</a><br><a href= > </a><br>Database web programmer and developer, fueled by peach snapple and mochas.[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top