caffeine

I've read that it is best to avoid caffeine during pregnancy. I've been trying to avoid it as we have been trying to conceive. However, the headaches have been terrible - I usually drink at least one soda and a glass of tea a day. Are there any other options or is a limited amount of caffeine okay?