I use the old style ( green can) Scotch Guard, and it works well. Unfortunately, it is no longer available and the new formula (red can) is different.

Although I've never used it, I've been told that "Silicone Water Guard" in the camping dept of Walmart will waterproof flies. Spray it into a baby food jar, as soak your flies. Place on paper towel to dry.