My fish don't like the spices used in store-boiled shrimp. I buy the bags of raw shell-on shrimp instead and my fish nearly jump out of the tank to get at the raw shrimp.
I personally don't feed any of my fish anything cooked. I don't want to risk any spice or anything that may have been cooked with the shrimp to perhaps make the fish sick or kill them.