You are here: Re: php gd prevent caching « PHP Language « IT news, forums, messages
Re: php gd prevent caching

Posted by Mike Willbanks on 11/25/05 03:58

dave,

> I have tried every "stop caching" header I can think of in both
> index.php and importimage.php, set expires to a time in the past and all
> the rest. Still, refresh the browser: you get the cached, not the
> latest, image (same in ie6 and Firefox). After a few minutes something
> expires and you do get the latest version by Refreshing, but this is no
> good for my application.

Are you sure you are using all of the correct headers?

header('Pragma: no-cache');
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

Mike

 

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

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