You are here

public function HeaderBag::removeCacheControlDirective in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/HeaderBag.php \Symfony\Component\HttpFoundation\HeaderBag::removeCacheControlDirective()

Removes a Cache-Control directive.

Parameters

string $key The Cache-Control directive:

File

vendor/symfony/http-foundation/HeaderBag.php, line 261

Class

HeaderBag
HeaderBag is a container for HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

public function removeCacheControlDirective($key) {
  unset($this->cacheControl[$key]);
  $this
    ->set('Cache-Control', $this
    ->getCacheControlHeader());
}