fix: do not cache button image (thanks to Alex Morozov)

This commit is contained in:
Evgeny Gryaznov 2011-02-28 22:12:07 +01:00
parent df590adf81
commit 10e676e05f

View File

@ -58,6 +58,9 @@ $image_postfix = has_online_operators($groupid) ? "on" : "off";
$filename = "locales/${lang}/button/${image}_${image_postfix}.gif";
$fp = fopen($filename, 'rb') or die("no image");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-Type: image/gif");
header("Content-Length: ".filesize($filename));
if(function_exists('fpassthru')){