aboutsummaryrefslogtreecommitdiffstats
path: root/core/avatar/controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/avatar/controller.php')
-rw-r--r--core/avatar/controller.php2
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();
}