mirror of
https://github.com/nextcloud/server.git
synced 2026-07-05 07:48:39 -04:00
Also set an E-Tag header
This commit is contained in:
parent
44e141cc6a
commit
91fed38f00
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue