When your opponent is controlling the open file, we automatically go for trade of rooks if possible. Here is a position in which White did this.
Erich Cohn vs Akiba Rubinstein, 1909
At first glance it seems that White is perfectly OK as there is no way for Black to create any passed pawn in spite of White’s doubled pawns on f file. Can you see any hole in White’s position? Actually White’s doubled pawn weakness can be exploited in the king and pawn endgame. Rubinstein’s play is really instructive from here:
In the following game Kasparov played 9 d6. Although this does not win material directly it fixes the pawn on d7 and therefore creates huge problems for Black in development. The rest of the game seems technical: