Cancer and Sun exposure
Over the years conflicting advice has been given concerning whether people should expose themselves to sunshine, with some advocating staying out of the sun completely, to others saying that using sun block causes cancer so they do not use it. However recently Scientists at the U.S. Department of Energy has found evidence that increased risk of melanoma cancer from the sun is outweighed by the reduced risk of internal cancers as a result of increased vitamin D production.
This was identified by comparing incidence and survival rates of some cancers by latitude. For example, people residing in Australia close to the equator produced 3.4 times more vitamin D due to sun exposure than people living in the UK and even more than that with the people in Scandinavia. The author of this study advocates using a sun block which only filters out UVA, however UVA can cause sunburn and skin aging, so this does not sound like the optimal solution. Instead it may be best to supplement with vitamin D and use sunscreen or reduce exposure to the sun. When shopping for a sunscreen it is important to note that SPF (sun protection factor) is a measurement of a products ability to stop someone from getting a sunburn, not its ability to stop cancer, so even with even with a high SPF cream on there will be an increased risk of getting cancer.
I found this useful piece of information via futurepundit
As a final point I would like to mention that life is not just about living the longest you possibly can, it is about living the longest you possibly can with the best quality of life, even with sun exposure you are unlikely to die of skin cancer.

