Diegoboy,
There's probably as many different kinds of expanding foam as there are people looking for it. The biggies are that it ought'a be a 'closed cell' type foam, won't soak up water like the 'open cell' type foam does. It ought'a be fuel resistant if you use a petroleum type fuel. And it has to be sort of readily available.
I've had two experiences with expanding foam, probably won't have another (if I can help it

). In one, that stuff seemed to never quit expanding. In the other, it didn't expand at all, gooy mess. I was lucky in both instances, no damage except to my wallet (learned several new cuss words so it wasn't a total loss).
If the foam that you used worked well, then great! Some of us just aren't that lucky...
- 'Doc