From 14cc1cd4b8d9e121e4f21851bf281bd4b565fb22 Mon Sep 17 00:00:00 2001 From: kondou Date: Sun, 1 Sep 2013 23:25:50 +0200 Subject: Pass setLastModifiedHeader() time() --- core/avatar/controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/avatar') 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(); } -- cgit v1.2.3