Most people experience it in their lifetime, but when this is frequent (twice a week or more often), causes difficulty swallowing, weight loss or otherwise interferes with daily routine, heartburn may be a symptom of a serious condition that requires medical care.
To avoid heartburn, don't overeat, eat slowly and at least two to three hours before lying down, avoid trigger foods (usually spice, fat, acid, caffeine), avoid dehydration.