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

    35,394
    7,822
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,058
    Local Time:
    11:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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 Premium Member Premium Member

    4,242
    1,033
    113
    May 25, 2014
    Ratings:
    +1,481
    Local Time:
    9:54 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

    35,394
    7,822
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,058
    Local Time:
    11:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
..