Despite all the bad press linking sun exposure to skin cancer, there’s almost no evidence at all to support it. There is, however, plenty of evidence to the contrary. Over the years, several studies have confirmed that appropriate sun exposure actually helps prevent skin cancer. In fact, melanoma occurrence has been found to decrease with greater sun exposure, and can be increased by sunscreens.
One of the most important facts you should know is that an epidemic of the disease has in fact broken out among indoor workers. These workers get three to nine times LESS solar UV exposure than outdoor workers get, yet only indoor workers have increasing rates of melanoma — and the rates have been increasing since before 1940.
To put it simply, UVB appears to be protective against melanoma — or rather, the vitamin D your body produces in response to UVB radiation is protective.