Removed duplicate cfheader calls and only set headers in testing / production mode.