public static function getResponseAge(ResponseInterface $response)
    {
        if ($response->hasHeader('Age')) {
            return (int) $response->getHeader('Age');
        }

        $date = strtotime($response->getHeader('Date') ?: 'now');

        return time() - $date;
    }