diff options
author | kondou <kondou@ts.unde.re> | 2013-09-01 23:07:38 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-09-01 23:07:38 +0200 |
commit | 91fed38f005c723c5d76bc58b8a222e87b0f64dc (patch) | |
tree | 225871ff72edb95f1d5aef2a32ce1548d590d465 | |
parent | 44e141cc6adc1ad51a6d293c117b53bea43aff87 (diff) | |
download | nextcloud-server-91fed38f005c723c5d76bc58b8a222e87b0f64dc.tar.gz nextcloud-server-91fed38f005c723c5d76bc58b8a222e87b0f64dc.zip |
Also set an E-Tag header
-rw-r--r-- | core/avatar/controller.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/avatar/controller.php b/core/avatar/controller.php index 96d80d35cc8..8be03e3119f 100644 --- a/core/avatar/controller.php +++ b/core/avatar/controller.php @@ -30,6 +30,7 @@ class OC_Core_Avatar_Controller { \OC_Response::disableCaching(); \OC_Response::setLastModifiedHeader(gmdate( 'D, d M Y H:i:s' ).' GMT'); + \OC_Response::setETagHeader(crc32($image->data())); if ($image instanceof \OC_Image) { $image->show(); } elseif ($image === false) { @@ -110,6 +111,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::setETagHeader(crc32($image->data())); $image->show(); } |