Brigham Young University ended a six-decade ban Thursday on the sale of caffeinated soft drinks on campus, surprising students by posting a picture of a can of Coca-Cola on Twitter and just two words: “It’s happening.”

The move sparked social media celebrations from current and former students, with many recalling how they had hauled their own two-liter bottles of caffeinated sodas in their backpacks to keep awake for long study sessions.

The Mormon church-owned university never banned having caffeinated drinks on campus – just selling them – and many people remembered how faculty mini-fridges were the only place where the drinks could be found.

“I drank a lot of caffeinated beverages while I was here but none of them was purchased on campus,” said Christopher Jones, 34, a visiting BYU history professor and former student. “I never thought I would see the day, so it’s exciting.”

Jones said he didn’t know whether to believe it when he saw the announcement on his phone, so he walked to a student center and saw the first bottles being stocked in vending machines and refrigerators. He was one of the first people to buy one. “Did I just buy the first-ever caffeinated Coke Zero Sugar sold in #BYU’s Wilkinson Student Center?” he tweeted. “Yes, yes I did.”

Sales of highly caffeinated energy drinks are still banned.

The university decided in the mid-1950s that no caffeinated beverages would be sold on campus and didn’t budge on its policy – even when the Church of Jesus Christ of Latter-Day Saints in 2012 clarified that church health practices do not prevent members from drinking caffeinated soft drinks.

The university said then that it was sticking to the policy because there was little demand for the drinks on campus. But the school of 33,000 students in Provo, Utah, said Thursday that increasing demand had prompted the change.

Caffeinated soft drinks will also be sold at sporting events that draw tens of thousands of fans.

The Utah-based Mormon religion directs its nearly 16 million worldwide members to avoid alcohol and hot beverages such as coffee and tea as part of an 1833 revelation from Joseph Smith, the founder of Mormonism.

Amber Whiteley said she used to get nasty looks when she brought Mountain Dew to campus when she was a BYU student nearly a decade ago.

“You youths will never understand the struggle we went through,” Whiteley wrote jokingly in a Facebook post.

In a phone interview, Whiteley said the change could affect views among Mormons about caffeine. She said some older Mormons in her Salt Lake City congregation still believe all caffeine is prohibited.

“Maybe this will be one more way to get the word out that it’s OK to have caffeine,” said Whiteley, a mother who is pursuing her doctorate in counselling psychology.