Welcome to Centmin Mod Community
Become a Member

Wordpress GZip not working with WP-Rocket

Discussion in 'Blogs & CMS usage' started by ArisC, Mar 29, 2018.

  1. ArisC

    ArisC Active Member

    113
    27
    28
    Jun 1, 2017
    Ratings:
    +52
    Local Time:
    11:05 AM
    Nginx Latest
    MariaDB Latest
    Hello, today I checked if gzip is working and it seems is not on my wordpress site using WP-Rocket as a cache plugin. It is enabled, I checked the demo site that is running with my server hostname... Where should I look to troubleshoot this. Thank's
     
  2. eva2000

    eva2000 Administrator Staff Member

    37,305
    8,151
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,547
    Local Time:
    7:05 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    how you verifying if gzip is working or not ?
     
  3. ArisC

    ArisC Active Member

    113
    27
    28
    Jun 1, 2017
    Ratings:
    +52
    Local Time:
    11:05 AM
    Nginx Latest
    MariaDB Latest
    With this online tool Check GZIP compression
    Its not working on WordPress but it does with hostname (server1.domain.tld)

    BTW the server is in Linode with the stackscript.

    Code:
    nginx -V
    nginx version: nginx/1.13.10
    built by gcc 7.2.1 20170829 (Red Hat 7.2.1-1) (GCC)
    built with OpenSSL 1.1.0h  27 Mar 2018
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -march=x86-64 -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.4.2 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre=../pcre-8.42 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.0h --with-openssl-opt='enable-ec_nistp_64_gcc_128'
     
  4. eva2000

    eva2000 Administrator Staff Member

    37,305
    8,151
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,547
    Local Time:
    7:05 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Use Chrome web browser dev tools network tab to check for gzip content or use curl compressed header check for Content-Encoding: gzip i.e.

    non-HTTPS
    Code (Text):
    curl --compressed -I http://yourdomain.com
    

    HTTPS
    Code (Text):
    curl --compressed -I https://yourdomain.com
    


    example for my Wordpress7 demo site
    Code (Text):
    curl --compressed -I http://wordpress7.centminmod.com/
    HTTP/1.1 200 OK
    Date: Wed, 28 Mar 2018 22:09:02 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Vary: Accept-Encoding
    Link: <http://wordpress7.centminmod.com/wp-json/>; rel="https://api.w.org/"
    X-Powered-By: centminmod
    X-Cache: HIT
    X-Cache-2: BYPASS
    X-Frame-Options: SAMEORIGIN
    X-Xss-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    Server: nginx centminmod
    Content-Encoding: gzip
    


    upload_2018-3-29_8-12-28.png
     
  5. ArisC

    ArisC Active Member

    113
    27
    28
    Jun 1, 2017
    Ratings:
    +52
    Local Time:
    11:05 AM
    Nginx Latest
    MariaDB Latest
    Its working............ :mad: Sorry @eva2000
     
  6. eva2000

    eva2000 Administrator Staff Member

    37,305
    8,151
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,547
    Local Time:
    7:05 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Hehe.. only trust online gzip tools as far as you can throw them :D

    curl header checks and browser checks more accurate :)
     
    • Like Like x 1
..