Slow OPTIONS requests with reverse proxy cache

Roger Fischer roger at netskrt.io
Wed Jan 23 17:03:33 UTC 2019


I am using the community version of NGINX, where these variables are not available (I was quite disappointed by that).

Roger


> On Jan 23, 2019, at 5:23 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> 
> Hello!
> 
> On Tue, Jan 22, 2019 at 04:48:23PM -0800, Roger Fischer wrote:
> 
>> I have noticed that the response to OPTIONS requests via a 
>> reverse proxy cache are quite slow. The browser reports 600 ms 
>> or more of idle time until NGINX provides the response. I am 
>> using the community edition of NGINX, so I don’t have any timing 
>> for the upstream request.
> 
> You do have timing for the upstream request, see the following 
> variables:
> 
> http://nginx.org/r/$upstream_response_time
> http://nginx.org/r/$upstream_connect_time
> http://nginx.org/r/$upstream_header_time
> 
> You can configure logging of these variables using the log_format 
> directive.  It is also a good idea to configure logging of generic 
> request processing time, $request_time.
> 
> -- 
> Maxim Dounin
> http://mdounin.ru/
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list