Download file only it's necessary.