Get the most out of your Centmin Mod LEMP stack
Become a Member

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:
    4:12 AM
    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

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    7:12 AM
    Nginx 1.13.x
    MariaDB 5.5
    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;
     
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    7:12 AM
    Nginx 1.13.x
    MariaDB 5.5