IE cache problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • goliatuy

    IE cache problem

    Hi, i'm having some issues with pages that IE don't reload, the problem
    is that i have other similar sites that don't present that problem, any
    one know what causes it, and how to fixit.
    Actualy i'm petched it adding a ?stamp=".date(" YmdHis") on every link.
    I't working fine, but if it's posible i want to find some more proper
    fix.
    Thanks

  • Alvaro G. Vicario

    #2
    Re: IE cache problem

    *** goliatuy escribió/wrote (5 Sep 2006 08:20:07 -0700):
    Hi, i'm having some issues with pages that IE don't reload, the problem
    is that i have other similar sites that don't present that problem, any
    one know what causes it, and how to fixit.
    Actualy i'm petched it adding a ?stamp=".date(" YmdHis") on every link.
    I't working fine, but if it's posible i want to find some more proper
    fix.
    Try this to force cache:

    header('Last-Modified: ' . gmdate('D, d M Y H:i:s', getlastmod()) . ' GMT');
    header('Expires : ' . gmdate('D, d M Y H:i:s', time()+86400) . ' GMT');

    And this to skip it:

    header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()-86400*365*10) . ' GMT');
    header('Expires : ' . gmdate('D, d M Y H:i:s', time()-86400*365*10) . ' GMT');
    header('Cache-Control: no-store, no-cache, must-revalidate');
    header('Cache-Control: post-check=0, pre-check=0', FALSE);
    header('Pragma: no-cache');



    --
    -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
    ++ Mi sitio sobre programación web: http://bits.demogracia.com
    +- Mi web de humor con rayos UVA: http://www.demogracia.com
    --

    Comment

    Working...