I don't think the foam actually does alot except soak up leaking oil from the engine and fuel system. That's the actual purpose of the foam in some modernish citroen diesels according to my mechanic mate.
And diesel is pretty difficult to ignite you can chuck it on a naked flame 🔥 and it will...