protected function getCacheLifetime(ResponseHeaderBag $headers)
    {
        $maxAge = 0;
        if ($headers->hasCacheControlDirective('max-age')) {
            $maxAge = $headers->getCacheControlDirective('max-age');
        }

        return $maxAge;
    }