These results imply that IFN-γ positively affects CD8+ memory precursor cell commitment early during infection and is essential for memory CD8+ T-cell persistence and function. Here, IFNG is linked to infection.