* avatar cache expiry
This commit is contained in:
parent
4881bb98cf
commit
1f4e128197
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user