Automatic refresh

R

Rich

Is there any way to ensure that when someone opens my website it
automatically opens the latest update without them having to select refresh?
 
P

P C

There is no guaranteed way to force loading a fresh page. Old page may
be loaded from browser's cache, the proxy's cache or the server's cache.

If you're using ASP, put in the very top of your page before the <HTML>
tag):

<%
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Cache-Control", "must-revalidate"
Response.AddHeader "Cache-Control", "no-cache"
%>

And if not using ASP, you can try these:

<META HTTP-EQUIV="expires" CONTENT="Wed, 03 Nov 1999 12:21:14 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Cache-Control" Content="no-cache">


....PC
 
Top