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

auto refresh.. is it possible

Status
Not open for further replies.

hungryhippy

Technical User
Dec 15, 2003
1
GB
can anyone let me know how to get round the problem of people not been able to see changes Ive made to my website?

my index page seems to get stuck as it was before I changed it... the only way to get the new version is to tell the viewer (or myself!) to do a ctrl + refresh

any suggestions?

hungry hippy
 
try this:

<html>
<head>
<meta http-equiv=&quot;refresh&quot; content=&quot;5&quot;>
</head>
<body>
<h1>Time: <script> document.write( new Date().toString() ); </script></h1>
</body>
</html>

The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of the darkness. For he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee....
 
You can also specify an expiration date for your document. This should cause the viewer's browser to not used the cached version after the expiration specified.
For example:
Code:
<META http-equiv=&quot;Expires&quot; content=&quot;Mon, 15 Dec 2003 16:20:00 GMT&quot;>

Set this date/time to shortly after(or maybe even before?) you modify the file so each time someone visits your page their browser will check to see if there's an updated version of it.

Kevin
A+, Network+, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top