From 91fed38f005c723c5d76bc58b8a222e87b0f64dc Mon Sep 17 00:00:00 2001 From: kondou Date: Sun, 1 Sep 2013 23:07:38 +0200 Subject: Also set an E-Tag header --- core/avatar/controller.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/avatar') 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(); } -- cgit v1.2.3