Coffee consumption and gallstones. There is some evidence that coffee triggers the contraction of the gallbladder. It appears likely that caffeine is largely responsible for the effect of coffee, since consumption of decaffeinated coffee is not linked to a reduced risk of developing gallbladder disease in all studies.