I don't really know, but thought I would share one of my experiences...
I had a period where my baby would be wide awake after her middle-of-the-night feeding (roughly anytime between midnight and 2 or 3 AM). It boggled us. We couldn't figure it out. She wasn't calm, and she didn't want to get drowsy & fall back asleep. She was active & wide awake. What was up with that?
Then one night DH made the connection between the ice cream we consumed sometime after dinner but before bedtime, which could be anywhere between 9 PM and 11 PM. So we stopped having our late night ice cream. Guess what! Baby was no longer active after middle-of-the-night feedings.
So that is how I learned that foods I consume had an effect on baby through breast milk. Ever since then, I was very careful about my sugar and caffeine intake, especially later in the day and at night.