diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-10-07 00:07:21 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-10-07 00:07:21 +0200 |
commit | d0107a0c0a0496f30a822b69d775c51c2cbd8316 (patch) | |
tree | 83a47a0e0105b362b33a38283fa1ba888964a655 | |
parent | d9464de690801dc41dbd17232a95019f274ab172 (diff) | |
parent | a8621265e27daefc4bd76fdf446e65648db4387d (diff) | |
download | nextcloud-server-d0107a0c0a0496f30a822b69d775c51c2cbd8316.tar.gz nextcloud-server-d0107a0c0a0496f30a822b69d775c51c2cbd8316.zip |
Merge branch 'master' into ace-editor
-rw-r--r-- | apps/gallery/ajax/getCovers.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/gallery/ajax/getCovers.php b/apps/gallery/ajax/getCovers.php index 57737f2fdd6..dfaffa34a1e 100644 --- a/apps/gallery/ajax/getCovers.php +++ b/apps/gallery/ajax/getCovers.php @@ -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); ?> |