enabled caching for pictures
This commit is contained in:
parent
2d9d242a29
commit
d9e385714b
@ -17,15 +17,19 @@ class HEADER {
|
|||||||
header('content-type: application/json');}}
|
header('content-type: application/json');}}
|
||||||
public static function PNG(){
|
public static function PNG(){
|
||||||
if(self::checkHeader()){
|
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;');}}
|
header('content-type:image/png;');}}
|
||||||
public static function JPG(){
|
public static function JPG(){
|
||||||
if(self::checkHeader()){
|
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;');}}
|
header('content-type:image/jpeg;');}}
|
||||||
public static function JPEG(){
|
public static function JPEG(){
|
||||||
if(self::checkHeader()){
|
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;');}}
|
header('content-type:image/jpeg;');}}
|
||||||
public static function GIF(){
|
public static function GIF(){
|
||||||
if(self::checkHeader()){
|
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;');}}
|
header('content-type:image/gif;');}}
|
||||||
public static function JS(){
|
public static function JS(){
|
||||||
if(self::checkHeader()){
|
if(self::checkHeader()){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user