Beta-lactam antibiotics prevent Salmonella-mediated bovine encephalopathy regardless of the β-lactam resistance status of the bacteria.