You are here: Re: IE cache problem « PHP Programming Language « IT news, forums, messages
Re: IE cache problem

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
--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация