No food and supplement can prevent/cure/treat the infection. A well-balanced diet and healthy lifestyle are the key which helps in reducing the severity of the infection.
Supplements are prescribed during the course of infection by the doctor or the dietitian.