diff options
author | kondou <kondou@ts.unde.re> | 2013-09-01 23:25:50 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-09-01 23:25:50 +0200 |
commit | 14cc1cd4b8d9e121e4f21851bf281bd4b565fb22 (patch) | |
tree | 23b6d68a018b26d1c492e1aede285800d91160b3 /core/avatar | |
parent | 5c1d64b80e8447b41110a878968cdb72a304a723 (diff) | |
download | nextcloud-server-14cc1cd4b8d9e121e4f21851bf281bd4b565fb22.tar.gz nextcloud-server-14cc1cd4b8d9e121e4f21851bf281bd4b565fb22.zip |
Pass setLastModifiedHeader() time()
Diffstat (limited to 'core/avatar')
-rw-r--r-- | core/avatar/controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/avatar/controller.php b/core/avatar/controller.php index 5cf87451b78..045d768dc14 100644 --- a/core/avatar/controller.php +++ b/core/avatar/controller.php @@ -29,7 +29,7 @@ class OC_Core_Avatar_Controller { $image = $avatar->get($user, $size); \OC_Response::disableCaching(); - \OC_Response::setLastModifiedHeader(gmdate( 'D, d M Y H:i:s' ).' GMT'); + \OC_Response::setLastModifiedHeader(time()); if ($image instanceof \OC_Image) { \OC_Response::setETagHeader(crc32($image->data())); $image->show(); @@ -110,7 +110,7 @@ class OC_Core_Avatar_Controller { $image = new \OC_Image($tmpavatar); \OC_Response::disableCaching(); - \OC_Response::setLastModifiedHeader(gmdate( 'D, d M Y H:i:s' ).' GMT'); + \OC_Response::setLastModifiedHeader(time()); \OC_Response::setETagHeader(crc32($image->data())); $image->show(); } |