* avatar cache expiry

This commit is contained in:
Dávid Danyi 2017-08-15 17:07:39 +02:00
parent 4881bb98cf
commit 1f4e128197

View File

@ -26,8 +26,9 @@ class AvatarAction implements ServerMiddlewareInterface
}
$avatarData = $this->avatarService->getAvatarData($signum);
return new TextResponse($avatarData, 200, [
return (new TextResponse($avatarData, 200, [
'content-type' => 'image/png',
]);
]))->withHeader('Expires', '0')
->withHeader('Cache-Control', 'must-revalidate');
}
}