Try shaving your head and walking around bald for six months. Don't ask questions you don't want to hear answers to or you wouldn't want someone to ask you. Don't insist on knowing their prognosis. Don't be afraid of them. Cancer isn't contagious.
Some people lean way back when they talk to cancer patients as if they're afraid to catch it.
Don't stop writing, visiting or calling. Cancer takes a long time to treat. Stick with them for the long haul. The burden is on you, the healthy person, to stay in touch. The best thing you can do is treat them the way you always have.