Generally, CD4+ TRM cells in viral infection and tumors mainly secreted IFN-γ, while CD4+ TRM cells induced by bacterial or fungal infection mainly expressed IL-17A. Here, IL17A is linked to viral infectious disease.