answer: Cheese is more compact and has a longer shelf life than milk, although how long a cheese will keep may depend on the type of cheese; labels on packets of cheese often claim that a cheese should be consumed within three to five days of opening.