I am developing a web api using Play Framework. I use nginx as the reverse proxy. Since the api will be used by embedded systems, the returning informantion should be as light as possible.
Play Framework in production mode returns excatly this: (RAW HTTP is taken from Fiddler)
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Cache-Control: no-cache
Content-Length: 14
aTqYu1mxQPy|10
However, when I placed nginx between user and api, the response turns into this:
HTTP/1.1 200 OK
Server: nginx/1.2.0
Date: Sun, 05 Aug 2012 15:08:31 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 14
Connection: close
Cache-Control: no-cache
aTqYu1mxQPy|10
I don't need Server, Date, Connection headers at all. They are added automatically by nginx. (or it is because I messed up nginx configuration of mine on my previous experiments)
Is there anyway to tell ngnix not to tell any of headers and pass them untouched?