In a purge gas system for a lithographic apparatus, a rate of flow of purge gas to the system is reduced substantially once a contamination level has fallen below a threshold level. The control may be on the basis of a detected level of contamination or on the basis of a timetable.