"Clear Cache" function

Discussion in 'HTML & Website Design' started by John84, Jun 19, 2007.

  1. #1
    Hi all,

    Just wondering if it's possible to have a "clear cache" function on a website? Is it possible to clear just that particular website or does the entire history get wiped?

    I ask because I want my visitors to be able to reset what links they have visited on the site. So if there is any other suggestions to achieve this, they would be appreciated as well.

    Thanks.
     
    John84, Jun 19, 2007 IP
  2. Mike H.

    Mike H. Peon

    Messages:
    219
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    To force the page to reload from the server, instead of the cache, you can use this JavaScript:


    <input type="button" value="Reload Page" onclick="self.location.reload(true)">
    Code (markup):
     
    Mike H., Jun 19, 2007 IP