protected function updateCacheControlHeader(): void
    {
        $parts = [];
        ksort($this->container);
        foreach ($this->container as $key => $value) {
            if (true === $value) {
                $parts[] = $key;
            } else {
                if (preg_match('#[^a-zA-Z0-9._-]#', (string)$value)) {
                    $value = '"' . $value . '"';
                }
                $parts[] = "$key=$value";
            }
        }
        if (\count($parts)) {
            $this->response->setHeader('Cache-Control', implode(', ', $parts));
        }
    }
protected function updateCacheControlHeader(): void
    {
        $parts = [];
        ksort($this->container);
        foreach ($this->container as $key => $value) {
            if (true === $value) {
                $parts[] = $key;
            } else {
                if (preg_match('#[^a-zA-Z0-9._-]#', (string)$value)) {
                    $value = '"' . $value . '"';
                }
                $parts[] = "$key=$value";
            }
        }
        if (\count($parts)) {
            $this->response->setHeader('Cache-Control', implode(', ', $parts));
        }
    }
protected function updateCacheControlHeader ( ) : void { $ parts = [ ] ; ksort ( $ this -> container ) ; foreach ( $ this -> container as $ key => $ value ) { if ( true === $ value ) { $ parts [ ] = $ key ; } else { if ( preg_match ( '#[^a-zA-Z0-9._-]#' , ( string ) $ value ) ) { $ value = '"' . $ value . '"' ; } $ parts [ ] = "$key=$value" ; } } if ( \ count ( $ parts ) ) { $ this -> response -> setHeader ( 'Cache-Control' , implode ( ', ' , $ parts ) ) ; } }
Prepare Cache-Control header

@return void
Prepare Cache - Control header