Without more description, your question cannot really be tackled. But, for grins, I will make an assumption of the following moves, which involved the earliest reasonable use of f5 by Black:
1.d4 d5 2. e4 dxe 3.Nc3 f5.
If THIS is the line to which you refer, then the game has simply transposed into a line of the Dutch Defense. Here, any of the following moves by White are reasonable plays: 4.f3, 4.Bc4, 4.Bf4, and 4.Bg5, where 4.Bf4 seems to be the favorite of strong players, but 4.f3 tries to keep the lines in the BDG motif.
Hope this helps ... some.
this is a version of an old opening
but how did biginner play against f5?