An optical fiber includes a glass fiber having a glass core and a cladding which contains voids spaced apart from the core. The voids act as trapping sites for ingressing molecules from the surrounding environment, thereby reducing the effect of such molecules on the fiber's light-transmission properties.