setSharedMaximumAge() public method

This method sets the "s-maxage" directive in the Cache-Control header.
public setSharedMaximumAge ( integer $maximumAge ) : Response
$maximumAge integer The maximum age in seconds
return Response This response, for method chaining
 /**
  * RFC 2616 / 14.9.4
  *
  * @test
  */
 public function setAndGetSharedMaximumAgeSetsAndReturnsTheSMaxAgeCacheControlDirective()
 {
     $response = new Response();
     $response->setNow(new \DateTime());
     $response->setSharedMaximumAge(60);
     $this->assertEquals('s-maxage=60', $response->getHeader('Cache-Control'));
     $this->assertSame(60, $response->getSharedMaximumAge());
 }