summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-12 20:38:28 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-12 20:40:52 +0100
commit125cf79a377a1073d18e6c609da9a6fcee64677b (patch)
tree905b823b4832749cc69363e4a93427a5933176db /apps
parent45bb6f5fd49cc5f86107176cf34f1b097698ed72 (diff)
downloadnextcloud-server-125cf79a377a1073d18e6c609da9a6fcee64677b.tar.gz
nextcloud-server-125cf79a377a1073d18e6c609da9a6fcee64677b.zip
OC_Response: add setExpiresHeader function
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/thumbnail.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/contacts/thumbnail.php b/apps/contacts/thumbnail.php
index 9c68e0789b4..0cdd0a86c74 100644
--- a/apps/contacts/thumbnail.php
+++ b/apps/contacts/thumbnail.php
@@ -27,9 +27,7 @@ OC_JSON::checkLoggedIn();
OC_Util::checkAppEnabled('contacts');
function getStandardImage(){
- $date = new DateTime('now');
- $date->add(new DateInterval('P10D'));
- header('Expires: '.$date->format(DateTime::RFC2822));
+ OC_Response::setExpiresHeader('P10D');
OC_Response::enableCaching();
OC_Response::redirect(OC_Helper::imagePath('contacts', 'person.png'));
}