Automatic refresh

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any way to ensure that when someone opens my website it
automatically opens the latest update without them having to select refresh?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top