Skip to content
Snippets Groups Projects
Commit 36196b6c authored by Robin Appelman's avatar Robin Appelman
Browse files

use browsercache for gallery covers

parent 7bcc0efd
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,12 @@ while (($i = $result->fetchRow()) && $counter < $numOfItems) {
header('Content-Type: image/png');
$offset = 3600 * 24;
// calc the string in GMT not localtime and add the offset
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT");
header('Cache-Control: max-age=3600, must-revalidate');
header('Pragma: public');
imagepng($targetImg);
imagedestroy($targetImg);
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment