Welcome to Centmin Mod Community
Register Now

Beta Branch optimise nginx default gzip compression level when cloudflare zlib used

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 11, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    optimise nginx default gzip compression level when cloudflare zlib used

    - Centmin Mod 123.09beta01 defaults to nginx compiles with cloudflare zlib performance library instead of standard zlib 1.2.11 library if you're using a 64bit cpu with SSE 4.2 and AES-NI support. If using cloudflare zlib libary, set the default gzip compression level higher instead of 5 set to 9 defaults as benchmarks show performance is still very high even with level 9 with cloudflare zlib library Nginx - Nginx Static HTML Benchmarks - Centmin Mod vs Easyengine vs Webinoly vs VestaCP
    - If Cloudflare zlib library is disabled via CLOUDFLARE_ZLIBRESET='n' or auto disabled when non-64bit, non-SSE 4.2 or non-AES-NI supported cpu is detected, auto reset default nginx gzip compression level back from 9 to 5 when default new option is set CLOUDFLARE_ZLIBRESET='y'. If you do not want it to auto reset back to gzip level 9 compression, you can override this routine by setting in persistent config file /etc/centminmod/custom_config.inc the variable, CLOUDFLARE_ZLIBRESET='n' prior to recompiling nginx via centmin.sh menu option 4

    Continue reading...


    123.09beta01 branch
     
  2. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    1:40 PM
    Mainline
    10.2
    What about for Dynamic/PHP generated Content?
    As all my static files are cached on Cloudflare already :D.
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+