In isolation I do not agree with the caution, but if the referee has considered it Unsporting Behaviour (Not respecting the game) it is hard to argue.
There is also the consideration that the scorer had been spoken to previously and this was for persistent infringements.
I'm also in the camp that believes the defender was more worthy of a caution for his reaction.