class Faraday::HttpCache::Response

def prepare_to_cache

Returns nothing.

once the 'Age' header is removed.
related headers if the 'Age' header is provided to ensure accuracy
to continue aging while cached. It also normalizes the 'max-age'
It removes the 'Age' header if present to allow cached responses

Internal: Prepares the response headers to be cached.
def prepare_to_cache
  if headers.key? 'Age'
    cache_control.normalize_max_ages(headers['Age'].to_i)
    headers.delete 'Age'
    headers['Cache-Control'] = cache_control.to_s
  end
end