Surprisingly, mayonnaise doesn’t have much of a shelf life either, and should only be kept for two months if it’s stored in the pantry or three months in the fridge. Due to its egg and vinegar content, it’s likely to start developing an off odor and alter its appearance after this.