From d9e385714bbdc868a6f504d9eb3bf76c452d42e9 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 29 Dec 2015 01:05:27 +0100 Subject: [PATCH] enabled caching for pictures --- system/HEADER.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/HEADER.php b/system/HEADER.php index af50df8..77cd9cf 100644 --- a/system/HEADER.php +++ b/system/HEADER.php @@ -17,15 +17,19 @@ class HEADER { header('content-type: application/json');}} public static function PNG(){ if(self::checkHeader()){ + header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + (60 * 60))); // 1 hour header('content-type:image/png;');}} public static function JPG(){ if(self::checkHeader()){ + header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + (60 * 60))); // 1 hour header('content-type:image/jpeg;');}} public static function JPEG(){ if(self::checkHeader()){ + header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + (60 * 60))); // 1 hour header('content-type:image/jpeg;');}} public static function GIF(){ if(self::checkHeader()){ + header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + (60 * 60))); // 1 hour header('content-type:image/gif;');}} public static function JS(){ if(self::checkHeader()){