In a situation where both players castle on the same side, is it ever a good idea to charge the pawns in front of the castled king? Are there any rules for when you can do this? I know that generally those pawns shouldn't move. But I am also increasingly finding it useful in my games to break up my opponent's king's defensive structure by pushing up pawns. If I don't see any obvious attack on my position, is it worth it?
Here is an example position from my previous game.
I played h3, stopping a further knight advance and looking at pushing g4 to close off the black's light square bishop. But my deeper idea was always to push those pawns right up to open up black's king. To be honest though, I'm still not sure whether this was a good idea at all.