Sets the number of seconds after which the response should no longer be considered fresh by shared caches.


public function setSharedMaxAge(int $value): static


   public function setSharedMaxAge(int $value): static

    {

        $this->setPublic();

        $this->headers->addCacheControlDirective('s-maxage', $value);


        return $this;

    }



Powered by Froala Editor