Transcriptional memory of dFOXO activation in youth curtails later-life mortality through chromatin remodelling and Xbp1.