Diet can be a contributing factor for some people, particularly high-glycemic foods and dairy, but it is rarely the sole cause. A dermatologist can help determine whether diet is playing a role in your specific case.