The problem is that gasoline and diesel fuel are not single compounds. They are both complex mixtures with carefully defined properties, largely based on their ability to ignite and burn. If it doesn't ignite or burn, then it isn't gasoline or diesel fuel.
So what are you trying to come up with? A mixture with the liquid handling properties of gasoline or diesel but that isn't flammable? An additive that can be put into gasoline or diesel fuel that would stop it from igniting or burning and would render a tankful useless? Something that can be thrown into or over a gasoline or diesel fuel fire that would instantly stop combustion? It is in fact, very important what it is for. Otherwise, we're just playing "guess what number MC is thinking of". That game gets old before it starts.