Symfony\Component\HttpFoundation\Response::setTtl
Sets the response's time-to-live for shared caches.
This method adjusts the Cache-Control/s-maxage directive.
Signature
public function setTtl(integer
$seconds )
Parameters
$seconds
— integer- Number of seconds
Returns
- Response