response.writeHeadとresponse.setHeaderって何が違うの?
参考:
response.writeHeadとresponse.setHeaderって何が違うの?