I haven't been paying much attention to this, but it seems to keep cropping up:
According to the National Cancer Institute, sunlight-induced skin cancer is the most prevalent cancer in the United States with more than 1 million new cases each year. Although multiple human epidemiologic studies link caffeinated beverage intake with significant decreases in several different types of cancer, including skin cancer, just how and why coffee protects against the disease is unknown.
"Caffeine might become a weapon in prevention because it inhibits ATR and also acts ad as a sunscreen and directly absorbs damaging UV light," said Conney.