best is to have a gap between the back surface of the i/c and the front surface of the rad so that the i/c does not soak up heat from the rad when you have no airflow, but to seal the gaps around the edges so that all airflow (whether from forward movement or from the fans) is forced through both heat exchangers. if you use foam, get what's known as closed cell foam that doesn't have holes all the way through.