Comics, Art, and Fun!
Welcome to WCN Sign in | Join | Help
in
Home Top WebComics Blogs Forums Photos Links Downloads

why do i need to refresh my pages so often

Last post 10-24-2006, 11:19 AM by RichardM. 3 replies.
Sort Posts: Previous Next
  •  10/29/2004 4:48:52 PM 498972

    why do i need to refresh my pages so often

    I made my site in dreamweaver and I'm happy with how it all works, save for one thing. When ever I do an update and upload a new version of my pages, I need to push the refresh button before my browser displays the new versions. Friends of mine have had the same problem and I'm worried that people might be coming to my site and then leaving because they think I've not updated.

    can anyone offer me an explanation and a way to sort this?
  •  2/19/2005 7:36:18 PM 735067 in reply to 498972

    RE: why do i need to refresh my pages so often

    you can make the page automatically refresh every few minutes
    or you can put the times you update at the bottom of the page so visiters know when you update
  •  7/22/2006 10:13:36 PM 783977 in reply to 498972

    Re: why do i need to refresh my pages so often

    The reason you may need to refresh is that your page is cached by the browser for faster loading.  I don't know if Dreamweaver lets you set the refresh on your page, but you could place the following html code in the head portion of your page :

    <meta http-equiv="refresh" content="X" />

    Replace "X" with the amount of seconds you want the page to refresh.  If you want it to refresh every five minutes, put in "300".

    I hope it helps.

    J Sheehan

    http://www.bymagic.com

     

  •  10/24/2006 11:19:18 AM 789001 in reply to 783977

    Re: why do i need to refresh my pages so often

    You know, this is a really long time later, but I don't think this was the proper way to go around it.

    Basically some browsers will cache the page.  Further, some servers, even ISPs will cache paches.  The proper response was probably to tell the browser to not cache the page.  You could do something like putting.

    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">

    In the Head tag.  If you were using asp you could add something like the following in the server code.

    <% Response.CacheControl = "no-cache" %>
    <% Response.AddHeader "Pragma", "no-cache" %>
    <% Response.Expires = -1 %>
       


    Richard M.
    Grimfang
    "Whisper"
    Xaeraes
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems