Disable expires header on thumbnail and photo.
This commit is contained in:
parent
f72a11f852
commit
5fb9b3e965
|
@ -14,7 +14,7 @@ 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_large.png'));
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ OCP\JSON::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'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue