The foam will work, but it expands a lot. If you go that route, use the window and door foam. It is minimally expanding. But it does make a mess! Clean any up that gets on the outside of the cabinet immediately. You’ll need paint thinner for that. It should be acoustically inert, as long as it doesn’t break free..
What about cutting pieces of MDF that equal the volume reduction you require, gluing and screwing them together, then gluing them onto the bottom of the cabinet? Wood glue will be stronger than the mdf. You could also use dynamat.. I put some in my speakers to increase bass clarity and reduce sidewall resonance, but in a small speaker like that, it will definitely decrease the internal volume a relatively significant amount.
What about cutting pieces of MDF that equal the volume reduction you require, gluing and screwing them together, then gluing them onto the bottom of the cabinet? Wood glue will be stronger than the mdf. You could also use dynamat.. I put some in my speakers to increase bass clarity and reduce sidewall resonance, but in a small speaker like that, it will definitely decrease the internal volume a relatively significant amount.