|
Posted by Alvaro G. Vicario on 09/09/06 23:35
*** 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
--
[Back to original message]
|