X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=lib%2FBarcode.class.php;h=6b2ed5613bbf66a3b1adb3c1fb4e98eff132205e;hb=2158110429d1927b2a0f8fc3904a7edab0559e90;hp=b4231e660bffe34e80671feb01882ae788c7cf9d;hpb=5469411711b7ac51190a64bf252aecb6a3f43f89;p=mirrors%2FSokoMan.git diff --git a/lib/Barcode.class.php b/lib/Barcode.class.php index b4231e6..6b2ed56 100755 --- a/lib/Barcode.class.php +++ b/lib/Barcode.class.php @@ -51,7 +51,10 @@ class Barcode { } static function download_barcode($string='EXAMPLE', $convert='png', $enctype='code128b') { - if(self::test()) header('Content-Type: image/png'); else die(); + if(self::test()) { + header('Content-Type: image/png'); + header('Cache-Control: max-age=604800, public'); //1week caching + } else die(); die(self::cached_barcode($string,$convert,$enctype)); } }