Allow caching of images

pull/4202/head
Isaac Connor 2023-02-13 16:15:12 -05:00
parent ce74d4a09d
commit 784ce14e50
1 changed files with 3 additions and 0 deletions

View File

@ -373,6 +373,9 @@ if ( $errorText ) {
ZM\Error($errorText);
} else {
header('Content-type: '.$media_type);
header('Cache-Control: max-age=86400');
header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + (60 * 60))); // Default set to 1 hour
header('Pragma: cache');
if ( ( $scale==0 || $scale==100 ) && ($width==0) && ($height==0) ) {
# This is so that Save Image As give a useful filename
if ( $Event ) {