def METHOD_NAME(tmp_path, temp_cache):
    url_base = f"{tmp_path.as_uri()}/"
    test_file_name = "test_file"
    url = url_base + test_file_name
    clear_download_cache(url)
    fn = tmp_path / "test_file"
    contents = "some text"
    fn.write_text(contents)
    # Insert into cache
    df_old = get_file(test_file_name, url_base=url_base)
    # Set the mtime to old
    long_ago = time.time() - 1_000_000
    os.utime(df_old, (long_ago, long_ago))
    new_contents = "some new text"
    fn.write_text(new_contents)
    df = get_file(test_file_name, url_base=url_base)
    assert open(df).read() == new_contents