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