I think this holds if $X$ is a CW complex. I don't have a reference, but try Bredon.