How do you face these two gambits in the CaroKann. They cause a lot of headache and I would like to have an understanding of the strategy (if there is any) not just some engine lines how to reply to each of them in a similar way if possible.
In Gambit 1:
[FEN ""]
1.e4 c6 2.d4 d5 3.Nc3 dxe4 4.Nxe4 Nf6 5.Ng5 Bf5 (5...h6 6.Nxf7 Kxf7) (5...c5 6.Nxf7 Kxf7) 6.Nxf7 Kxf7
Gambit 2:
[FEN ""]
1.e4 c6 2.Nf3 d5 3.Nc3 dxe4 4.Nxe4 Nf6 5.Neg5 h6 6.Nxf7 Kxf7 7.
I want a solution at move 5 for Black for both gambits. In many of these lines White continues with moves like Bc4, etc, and it's very hard to meet these moves.