A mobile safari client will do multiple duplicate GET requests to our server, I think this is due to pipelining: Safari Sends Two HTTP Req. Same Time/Socket.
Since our endpoint isn't idempotent, we have issues with this, as one of the requests will fail and the client gets erratic behavior.
I am trying to disable keepalive for only one endpoint in Nginx. Any ideas? The below gives me an nginx 404 error, and the log shows that nginx is trying to access a filesystem location: "/usr/share/nginx/html/duplicateget" with "No such file or directory" for the special endpoint /duplicateget. (I called it duplicateget as an example)
location / {
ssi off;
autoindex off;
include uwsgi_params;
uwsgi_param Host $host;
uwsgi_param X-Real-IP $remote_addr;
uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto;
uwsgi_pass cluster;
location /duplicateget {
keepalive_timeout 0;
}
}