How to disassemble the front shock bumpers

I have seen them explode in a car fire, not sure what is in them, but oil and some kind of foam that can compress