bacterial infection😷

hey ladies! i have a weird question. my partner & I usually have intercourse 1-2 a week & I sometimes get bacterial vaginosis but its only when he doesn't take a shower before & get all clean first. is there any tips on how to keep from getting them when he doesn't shower first😐