summaryrefslogtreecommitdiffstats
path: root/apps/contacts/thumbnail.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/thumbnail.php')
-rw-r--r--apps/contacts/thumbnail.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/contacts/thumbnail.php b/apps/contacts/thumbnail.php
index 5082626499b..28b8eba22c9 100644
--- a/apps/contacts/thumbnail.php
+++ b/apps/contacts/thumbnail.php
@@ -39,6 +39,7 @@ if(!function_exists('imagecreatefromjpeg')) {
}
$id = $_GET['id'];
+$caching = isset($_GET['refresh']) ? 0 : null;
$contact = OC_Contacts_App::getContactVCard($id);
@@ -48,7 +49,7 @@ if(is_null($contact)){
getStandardImage();
exit();
}
-OC_Response::enableCaching();
+OC_Response::enableCaching($caching);
OC_Contacts_App::setLastModifiedHeader($contact);
$thumbnail_size = 23;