setPrivate() public méthode

A response flagged as "private" tells that it is intended for a specific user and must not be cached by a shared cache.
public setPrivate ( ) : Response
Résultat Response This response, for method chaining
 /**
  * RFC 2616 / 14.9.1
  *
  * @test
  */
 public function setPrivateSetsTheRespectiveCacheControlDirective()
 {
     $response = new Response();
     $response->setNow(new \DateTime());
     $response->setPrivate();
     $this->assertEquals('private', $response->getHeader('Cache-Control'));
 }