mirror of
https://github.com/Mibew/java.git
synced 2025-01-23 01:50:34 +03:00
fix: do not cache button image (thanks to Alex Morozov)
This commit is contained in:
parent
df590adf81
commit
10e676e05f
@ -58,6 +58,9 @@ $image_postfix = has_online_operators($groupid) ? "on" : "off";
|
|||||||
$filename = "locales/${lang}/button/${image}_${image_postfix}.gif";
|
$filename = "locales/${lang}/button/${image}_${image_postfix}.gif";
|
||||||
|
|
||||||
$fp = fopen($filename, 'rb') or die("no image");
|
$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-Type: image/gif");
|
||||||
header("Content-Length: ".filesize($filename));
|
header("Content-Length: ".filesize($filename));
|
||||||
if(function_exists('fpassthru')){
|
if(function_exists('fpassthru')){
|
||||||
|
Loading…
Reference in New Issue
Block a user