Neos\Flow\Http\Headers::getCacheControlHeader PHP Method

getCacheControlHeader() protected method

Renders and returns a Cache-Control header, based on the previously set cache control directives.
See also: get()
protected getCacheControlHeader ( ) : string
return string Either the value of the header or NULL if it shall be omitted
    protected function getCacheControlHeader()
    {
        $cacheControl = '';
        foreach ($this->cacheDirectives as $cacheDirective) {
            $cacheControl .= $cacheDirective !== '' ? $cacheDirective . ', ' : '';
        }
        $cacheControl = trim($cacheControl, ' ,');
        return $cacheControl === '' ? null : $cacheControl;
    }