fix public access to api get cache
display error message on 404