Long before it became a beloved Southern side dish, pineapple casserole began with a 1920s recipe contest—and its journey through American kitchens tells a story all its own.