As I understand from reading the mail list, keep-alive is not enabled
for Safari browsers.
We really would like to enable this (for at least iPhone/iPad
clients)…
Questions:
Is keep-alive disabled for all Safari/Web kit browsers?
Can this be configured, to allow keep-alive even for Safari?
I also founded NGIX disabled keep-alive for safari.
I am not sure exact reason of this.
ngx_http_core_module.c
if (r->keepalive) {
if (r->headers_in.msie6) {
if (r->method == NGX_HTTP_POST) {
/*
* MSIE may wait for some time if an response for
* a POST request was sent over a keepalive
connection
*/
r->keepalive = 0;
}
} else if (r->headers_in.safari) {
/*
* Safari may send a POST request to a closed keepalive
* connection and stalls for some time
*/
r->keepalive = 0;
}
}
On Thu, Nov 25, 2010 at 04:49:52PM +0100, Jan Andersson wrote:
Not all sites need this work-a-round…
The attached patch introduces
safari_keepalive on|off;
directive. The default value is “off”.
It will be included in next 0.9.0.
This e-mail is confidential. It may also be legally privileged.If you
are not the addressee you may not copy, forward, disclose or use any
part of it. If you have received this message in error,please delete it
and all copies from your system and notify the sender immediately by
return e-mail.Internet communications cannot be guaranteed to be
timely,secure, error or virus-free. The sender does not accept liability
for any errors or omissions.