Learn about Centmin Mod LEMP Stack today
Register Now

SSL Optimizing NGINX TLS Time To First Byte (TTTFB)

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Jemekite, Jun 24, 2015.

  1. Jemekite

    Jemekite New Member

    12
    5
    3
    Jun 10, 2015
    Indonesia
    Ratings:
    +9
    Local Time:
    8:49 PM
    1.9.2
    MariaDB 10
    I just read this article: Optimizing NGINX TLS Time To First Byte (TTTFB) - igvita.com
    Is this still relevant on current nginx version?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:49 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    not relevant since Nginx 1.5.9+ and higher Nginx HTTPS / SSL Google SPDY configuration as ssl_buffer_size option is supported and if you set it to 1400

    Code:
           # nginx 1.5.9+ or higher
            # http://nginx.org/en/docs/http/ngx_http_spdy_module.html#spdy_headers_comp
            # http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_buffer_size
            # spdy_headers_comp 0;
            # ssl_buffer_size 4k;
    so you could set the following if you have SPDY SSL enabled and uncomment it removing hash # and restart nginx

    Code:
    ssl_buffer_size 1400;
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:49 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+