T-cell–DC interaction involving IFN-γ and IL-12 is required for effective anti–PD-1 cancer treatment. This evidence concerns the gene IFNG and cancer.