BUG: check .txt extension in cached