Static files bad loading time

Francis Daly francis at
Thu Apr 30 17:15:11 UTC 2015

On Sun, Apr 26, 2015 at 06:11:32AM -0400, grigory wrote:

Hi there,

>         # Static files location
>         location ~*
> ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$

So - you have your configuration; you make a request; sometimes you get
the response quickly, but sometimes you get the response slowly.

Can you tell from nginx logs whether the slowness is due to
slow-read-from-disk, or slow-write-to-client, or something else?

Can you find any pattern in the requests which respond more slowly than
you want? Certain browsers, certain times of day, anything like that?

If you make the request from the machine itself, so network issues should
be minor, does it still show sometimes being slow?

Good luck with it,

Francis Daly        francis at

More information about the nginx mailing list