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

Always show latest version?

Status
Not open for further replies.

paulbradley

Programmer
Oct 9, 2002
158
GB
Is there a way of always ensuring people always see the latest version of a webpage rather than one stored in their temp documents? Ie. stops them needing to press refresh when they visit the page a 2nd time?
 
Thats great, thanks!

For the reference of others, add:

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

in the <head>
 

I always use that in conjunction with two other tags:

Code:
<meta http-equiv="expires" content="Mon, 5 Jan 2004 11:00:00 GMT" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />

That's not to say that the one you are using won't always work, but the others have to be there for a reason, right? ;o)

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top