fixed caching in record_local_path on HTTP error code