fixed: record should be undefined if cached file is not found