Supplementation of the mice with DCA, but not CA, attenuated S. aureus-associated mastitis by limiting inflammatory responses and improving the blood-milk barrier disruption in which the underlying mechanism was involved in TGR5-mediated NF-κB and NLRP3 inhibition through the cAMP-PKA pathways. This evidence concerns the gene GPBAR1 and mastitis.