Symfony\Component\HttpFoundation\Response::setMaxAge
Sets the number of seconds after which the response should no longer be considered fresh.
This methods sets the Cache-Control max-age directive.
Signature
public function setMaxAge(integer
$value )
Parameters
$value
— integer- Number of seconds
Returns
- Response