src/Valkyrja/Http/NativeResponse.php
public function setSharedMaxAge(int $value): Response
    {
        $this->setPublic();
        $this->addCacheControl('s-maxage', $value);

        return $this;
    }
public function setSharedMaxAge(int $value): Response
    {
        $this->setPublic();
        $this->addCacheControl('s-maxage', $value);

        return $this;
    }
Sets the number of seconds after which the response should no longer be
considered fresh by shared caches.

This methods sets the Cache-Control s-maxage directive.

@param int $value Number of seconds

@return \Valkyrja\Http\Response