You are here: Re: Browser keeps caching « All PHP « IT news, forums, messages
Re: Browser keeps caching

Posted by J.O. Aho on 09/06/07 17:55

news.xs4all.nl wrote:
> Hi,
>
> I have a problem with Internet Explorer (v7). It's not my favorite
> browser, but you do have to test your websites in it.
>
> In my browser, I have selected the cache option "Every time I visit the
> website".
> In the PHP code I included:
>
> header("Cache-Control: no-store, no-cache, must-revalidate");
> header("Cache-Control: post-check=0, pre-check=0", false);
> header("Expires: Mon, 1 Jan 2000 00:00:00 GMT"); // Date in the past
> header("Pragma: no-cache");
>
> Still I need to refresh the page with Ctrl-F5, pressing just F5 returns
> an old version of the page.
>
> Do I miss something here?

Beyond the fact that MSIE7 is yet more buggy than previous versions, you
should never count on that a browser or proxy won't cache even if you tell it
to not do so in the headers/meta-tags, there still user settings which you
never will be able to control.

--

//Aho

 

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

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