It is defnitely true in my case: if I drink a cup of coffee (black without sugar or anything), without having eaten food previously, as in the morning, I do automatically get floaters, like dark or light blotches, and they diminish over time (10 minutes say).
These floaters are of the same kind that I would get when exhausted after logging, if that is of any help.
I have heard that connection, however I doubt anyone can really link the two together with certainty. I would say keeping a healthy lifestyle and a good diet is a general help when it comes to eye health as well. Doubt there is anything that can fix the floaters either, they seem pretty fixed once you get them (some can move out of your sight however). If they keep growing its generally something going on in the eye or elsewhere. There are also several drugs that can give you floaters (according to my pharmacist friend, unsure which ones).