enabled caching for pictures

This commit is contained in:
Ulf Gebhardt 2015-12-29 01:05:27 +01:00
parent 2d9d242a29
commit d9e385714b

View File

@ -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()){