Why is my server response time over 400 ms for a fully cached site?

Quintin Par quintinpar at gmail.com
Thu Oct 25 20:58:15 UTC 2018

Cross-posted at Stackoverflow

I have a website with all of the pages served from nginx’s http cache and
rarely invalidated or expired.

The average total page download size is around 2 MB But despite being a
static site with no funny logic my server response is around a second


I recorded nginx’s $request_time and it comes to around 400 milliseconds
from the server


and each file at 20-30 KB average


400 millisecond seems to be absurd.

I am behind *Cloudflare* and

sendfile        on;

tcp_nopush     off;

tcp_nodelay on;

keepalive_timeout  300s;

keepalive_requests 10000;

What should I be doing to bring down the response time to the
150-millisecond range?

- Quintin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20181025/9bd8ee6f/attachment.html>

More information about the nginx mailing list