def get_file_str(path, saltenv='base'):
    '''
    Download a file from a URL to the Minion cache directory and return the
    contents of that file

    Returns ``False`` if Salt was unable to cache a file from a URL.

    CLI Example:

    .. code-block:: bash

        salt '*' cp.get_file_str salt://my/file
    '''
    fn_ = cache_file(path, saltenv)
    if isinstance(fn_, six.string_types):
        try:
            with salt.utils.files.fopen(fn_, 'r') as fp_:
                return fp_.read()
        except IOError:
            return False
    return fn_
Download a file from a URL to the Minion cache directory and return the
    contents of that file

    Returns ``False`` if Salt was unable to cache a file from a URL.

    CLI Example:

    .. code-block:: bash

        salt '*' cp.get_file_str salt://my/file