Mice vaccinated against Py17XL show reduced early TGF-β responses and higher IFN-γ and TNF-α levels, leading to quick resolution of subsequent infections. Here, TNF is linked to infection.