Sets the response's time-to-live for shared caches in seconds.
This method adjusts the Cache-Control/s-maxage directive.
@final
$this
public function setTtl(int $seconds) : static { $this->setSharedMaxAge($this->getAge() + $seconds); return $this; }