When serving the strawberry shortcake, only assemble what's going to be eaten. That way you'll be able to keep any leftovers fresher for longer. The shortcake/cake part should be left out at room temperature in an airtight container, but the compote, cream and strawberries should be stored separately in the fridge in airtight containers.