GIT.Harvie.CZ
/
mirrors
/
SokoMan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pokus o vyreseni tabulky co ujizdi pri nacitani obrazku
[mirrors/SokoMan.git]
/
lib
/
Barcode.class.php
diff --git
a/lib/Barcode.class.php
b/lib/Barcode.class.php
index b4231e660bffe34e80671feb01882ae788c7cf9d..6b2ed5613bbf66a3b1adb3c1fb4e98eff132205e 100755
(executable)
--- 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') {
}
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));
}
}
die(self::cached_barcode($string,$convert,$enctype));
}
}
This page took
0.1023 seconds
and
4
git commands to generate.