There are other methods too, e.g. fire inhibitors (like Halon or whatever is allowed now) or shockwave to disrupt fire boundary. But I doubt they are very practical on a spaceship.
Not an expert but I'm not too sure about shockwave in a confined space.
How does Halon works?
First stage (Super Heavy) is flushing the engine bay with massive ammounts of CO2.