How do you do a forced page refresh?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clickhappy
    Confirmed User
    • Mar 2004
    • 4027

    #1

    How do you do a forced page refresh?

    I did this but it doesnt seem to work

    <SCRIPT LANGUAGE=JavaScript>
    function now(){
    window.location.reload(true);
    }
    </SCRIPT>

    I changed some stuff on the page and when I went to my second computer to look at it, it looked all fucked up because the .css didnt refresh.
    even with that javascript on top

    many of my members wont know to hit refresh.
    So how can I force their browser?
  • DigitalTheory
    ^-^
    • Jul 2007
    • 1055

    #2
    <meta http-equiv="refresh" content="60"> 60 being seconds

    But it seems excessive if you just want their site to update the css. Sounds like a Cache problem to me.
    Last edited by DigitalTheory; 10-18-2012, 07:16 PM.

    Comment

    • clickhappy
      Confirmed User
      • Mar 2004
      • 4027

      #3
      Originally posted by DigitalTheory
      <meta http-equiv="refresh" content="60"> 60 being seconds

      But it seems excessive if you just want their site to update the css. Sounds like a Cache problem to me.
      I found a trick and it really works
      http://www.zadling.com/2010/08/css-t...ew-stylesheet/

      so clever

      Comment

      Working...