Adds a custom Cache-Control directive.
public function addCacheControlDirective(string $key, bool|string $value = true) : void { $this->cacheControl[$key] = $value; $this->set('Cache-Control', $this->getCacheControlHeader()); }