Before ozone layer depletion, the benefits of vitamin D from sun exposure outweighed the risks of skin cancer from sun exposure.
After ozone layer depletion, the risks of skin cancer from sun exposure now outweighs the benefits of vitamin D from sun exposure.
The safest way to get vitamin D now is with supplements.