From 10e676e05fa9850cf92454483b2bf78c661b4c12 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Mon, 28 Feb 2011 22:12:07 +0100 Subject: [PATCH] fix: do not cache button image (thanks to Alex Morozov) --- src/messenger/webim/b.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/messenger/webim/b.php b/src/messenger/webim/b.php index 7af33528..4780c50f 100644 --- a/src/messenger/webim/b.php +++ b/src/messenger/webim/b.php @@ -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')){