stopping page refresh on back and forward

Discussion in 'Programming' started by pthona, May 3, 2007.

Thread Status:
Not open for further replies.
  1. #1
    I want to stop the page loading from server when user moves back and forward on their computer on my site.

    more specifically i want to show them browser cache rather then showing newly loaded copy of the page from the server on back and forward event

    how can i do that ...

    something to do with meta tags ...?

    -P
     
    pthona, May 3, 2007 IP
  2. SeLfkiLL

    SeLfkiLL Active Member

    Messages:
    85
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    50
    #2
    Yes, you can send an HTTP header like "Last-Modified" to tell browsers when the page was last modified so they can cache it.

    <meta http-equiv="Last-Modified" content="Thu, 03 May 2007 13:25:27 GMT">
    Code (markup):
     
    SeLfkiLL, May 3, 2007 IP
Thread Status:
Not open for further replies.