new fetch_static_idp_file function