C/p
While laying on a glass patio or soaking up rays through a window may feel good on your skin, the warmth that comes through is deceiving because vitamin D-producing UVB rays cannot pass through glass. So you’ll get absolutely no boost to your vitamin D levels if the sunlight passes through a window before hitting your skin.
Worse still, the skin-damaging UVA light, which penetrates your skin more deeply than UVB, and may be a much more important factor in photoaging, wrinkles and skin cancers, does pass through glass. This means that getting sun exposure through a window gives you none of the beneficial UVB, and all of the cancer-causing UVA!
A study in Medical Hypotheses5 even suggested that indoor workers may have increased rates of melanoma because they're exposed to sunlight through windows, and only UVA light, unlike UVB, can pass through window glass. At the same time, these indoor workers are missing out on exposure to the beneficial UVB rays, and have lower levels of vitamin D.