Intracellular delivery of a protein antigen with an endosomal-releasing polymer enhances CD8 T-cell production and prophylactic vaccine efficacy.