Thread count fixes; turn off long expires headers when not in production mode for resources