removeCacheControlDirective() public method

Removes a special directive previously set for the Cache-Control header.
public removeCacheControlDirective ( string $name ) : void
$name string Name of the directive, for example "public"
return void
 /**
  * (RFC 2616 / 14.9.4)
  *
  * @test
  */
 public function mustRevalidateAndProxyRevalidateAreRenderedCorrectly()
 {
     $headers = new Headers();
     $headers->setCacheControlDirective('must-revalidate');
     $this->assertEquals('must-revalidate', $headers->get('Cache-Control'));
     $headers->removeCacheControlDirective('must-revalidate');
     $headers->setCacheControlDirective('proxy-revalidate');
     $this->assertEquals('proxy-revalidate', $headers->get('Cache-Control'));
 }