You are here: Re: Generated file « PHP Programming Language « IT news, forums, messages
Re: Generated file

Posted by Alvaro G. Vicario on 11/27/05 21:27

*** Andrew Clark escribió/wrote (Sun, 27 Nov 2005 18:36:37 +0000):
> It is my belief
> that IE caches the values in this file and when the frame is reloaded, IE
> tries to be "smart" and sees that I am including the same file, and
> therefore does not reload from the file but from its cache.

I don't whether IE obeys date headers but you can tag the script document so it expires inmediately:

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');


// HTTP/1.1
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);

// HTTP/1.0
header('Pragma: no-cache');


BTW, have you remembered to set the appropriate Content-Type header?

--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--

 

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

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