I am making an Ajax GET request passing in a key/value list that I just need logged by nginx. I don't care about response as my intent is to just log the arguments passed.
I tried closing connection by sending a 444:
if ($request_method = GET ) {
return 444;
}
but this causes the client to be unresponsive (blank screen).
Is there a way for nginx to just receive the HTTP GET and log it and not respond back (to save traffic and increase throughput)?
Thanks!
-Sulaiman