Have one or two boxes of salt on hand at all times (iodized is not necessary). This sounds strange, but I promise you it really works well. I've been using this method for over 40 years. As soon as the spill happens, I mean immediately...grab the salt box. GENEROUSLY pour and pile the salt everywhere there is liquid. Really pile it on. Now here's the really strange part. Leave it for 24 hours, until dry. The salt will draw all the liquid out of the carpet. After 24 hours, break up the clumps (it gets hard when it dries) and, using a large spatula, throw all the large pieces into the trash. Then vacuum up the remaining salt. Using a nozzle for the last few grains works well. You'll never have a stain again.