Fresh homemade pesto should be stored in the fridge, in an airtight container or bowl covered with cling film to prevent the air getting in to it. With bought pesto, once the jar is opened the pesto should be stored in the fridge. If the bought pesto was in the chilled section at the shop, store it in the fridge before opening.