Join the community today
Become a Member

Beta Branch disable nginx webP for Cloudflare in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Mar 21, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    44,781
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    12:36 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    disable nginx webP for Cloudflare in 123.09beta01

    - Disable Centmin Mod Nginx .webp auto detection/serving when Cloudflare is detected as CF Free plan doesn't support due to Cloudflare cache ignoring Vary header and with CF paid plans you won't need Centmin Mod Nginx .webp origin support as CF plaid plans have Polish which can enable on the fly webP conversion anyway Wordpress - Playing with EWWW Image Optimizer Wordpress Plugin.
    - Existings users can update via running cmupdate and then run and exist centmin.sh menu once. This will update include file /usr/local/nginx/conf/webp.conf referenced in nginx.conf with the 2nd nginx map for cf-connecting-ip HTTP header.

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,781
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    12:36 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    FYI, change /usr/local/nginx/conf/webp.conf include file to check for cf-cache-status HTTP header instead of cf-connecting-ip header so that Cloudflare DNS only mode can still work with nginx level webP support and only disable nginx level webP support if Cloudflare Proxy/CDN cache is enabled Beta Branch - update webp.conf nginx include file in 123.09beta01