While CD28 Ab, VCAM-1 and MAdCAM-1 all promoted the formation of TRM-like cells, only MAdCAM-1 + RA costimulation consistently supported infection. Here, CD28 is linked to infection.