Vomiting white foam can also be caused by illnesses of the digestive tract that need further treatment. Illnesses that can cause vomiting include hepatitis, pancreatitis, diabetes, and kidney disease. If the vomiting persists a few days, even with a bland diet, consult your veterinarian.
Bake the squash for 40-45 minutes. Bake it until it's tender. After 35 minutes, start poking it with a fork to check to see how tender it is. Then, remove the squash from the oven.
If you cut the squash, it'll cook faster. The baking time goes from about an hour for a whole squash, to about 35 to 45 minutes for one cut in half. Not a huge difference, especially since baking spaghetti squash ahead of time works so well.