IE8 will not reload page from server, only from cache

Discussion in 'HTML & Website Design' started by ycc, Jun 22, 2009.

  1. #1
    I have a simple page that reloads proverbs randomly. (PHP MySQL)

    If I reload the page in FF, it will show a new proverb.

    If I reload the page in IE8, IE8 will just pick out the same old page from the cache. I will not see a new proverb on reload.

    Please tell me how to make IE8 reload from server and not from cache.

    Thanks.

    http://yorabbit.info/test/proverb/proverb_list.php
     
    ycc, Jun 22, 2009 IP
  2. ycc

    ycc Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think I solved the problem.

    I added a dummy parameter to the link that reloads the page:

    http:....page.php?a=random-number
    Code (markup):
    IE8 will now think it must load a new page and asks the server (although it is the same).
     
    ycc, Jun 22, 2009 IP
  3. pipisdicelana

    pipisdicelana Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    or you could do this
    window.location.replace( url );
    Code (markup):
     
    pipisdicelana, Jun 23, 2009 IP