diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-06 01:04:59 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-06 01:06:13 +0200 |
commit | fce614b82c61a0d2e45ffe05bbe030d842f3ca16 (patch) | |
tree | 65dc4a460c4a2b8399579e39727a650847add21c | |
parent | 68670bcc66603540e39c055b8fe8c6a75055b5b0 (diff) | |
download | nextcloud-server-fce614b82c61a0d2e45ffe05bbe030d842f3ca16.tar.gz nextcloud-server-fce614b82c61a0d2e45ffe05bbe030d842f3ca16.zip |
Less aggressive caching on thumbnails too.
-rw-r--r-- | apps/contacts/thumbnail.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/contacts/thumbnail.php b/apps/contacts/thumbnail.php index 5b340042a25..da4e930f3e5 100644 --- a/apps/contacts/thumbnail.php +++ b/apps/contacts/thumbnail.php @@ -20,14 +20,12 @@ * */ -// Init owncloud - OCP\JSON::checkLoggedIn(); //OCP\User::checkLoggedIn(); OCP\App::checkAppEnabled('contacts'); function getStandardImage(){ - OCP\Response::setExpiresHeader('P10D'); + //OCP\Response::setExpiresHeader('P10D'); OCP\Response::enableCaching(); OCP\Response::redirect(OCP\Util::imagePath('contacts', 'person.png')); } @@ -59,12 +57,10 @@ $image = new OC_Image(); $photo = $contact->getAsString('PHOTO'); if($photo) { OCP\Response::setETagHeader(md5($photo)); - if($image->loadFromBase64($photo)) { if($image->centerCrop()) { if($image->resize($thumbnail_size)) { if($image->show()) { - // done exit(); } else { OCP\Util::writeLog('contacts','thumbnail.php. Couldn\'t display thumbnail for ID '.$id,OCP\Util::ERROR); |