Welcome to Centmin Mod Community
Become a Member

Nginx PageSpeed 123.07beta21 - NGINX_PAGESPEED

Discussion in 'Centmin Mod Insights' started by dorobo, Jun 13, 2014.

  1. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +161
    Local Time:
    2:12 AM
    latest
    latest
    I have a question about nginx pagespeed

    here are my settings in centmin.sh

    NGINX_PAGESPEED=y # Install ngx_pagespeed
    NGINX_PAGESPEEDGITMASTER=y # Install ngx_pagespeed from official github master instead
    NGXPGSPEED_VER='1.8.31.3-beta'
    NGINX_PAGESPEEDPSOL_VER='1.8.31.3'

    but in the domains vhost conf, it is commented out

    # ngx_pagespeed & ngx_pagespeed handler
    [HASHTAG]#include[/HASHTAG] /usr/local/nginx/conf/pagespeed.conf;
    [HASHTAG]#include[/HASHTAG] /usr/local/nginx/conf/pagespeedhandler.conf;
    [HASHTAG]#include[/HASHTAG] /usr/local/nginx/conf/pagespeedstatslog.conf;

    how come it still uses it

    SERVER RESPONSE: 200 OK
    Server: nginx
    Content-Type: text/html; charset="UTF-8"
    Transfer-Encoding: chunked
    Connection: keep-alive
    Vary: Accept-Encoding
    Date: Thu, 29 Jan 1970 10:57:50 GMT
    X-Page-Speed: 1.8.31.3-4009
    Cache-Control: max-age=0, no-cache
    Content-Encoding: gzip

    and in the source for example

    <img src="xxxxx .... pagespeed_url_hash="4064258397" onload="pagespeed.CriticalImages.checkImageForCriticality(this);"/>

    how do I disable pagespeed?
     
  2. RoldanLT

    RoldanLT Well-Known Member

    3,869
    945
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,284
    Local Time:
    2:12 AM
    1.11
    10.2
    Try "pscontrol off" ?
     
  3. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +161
    Local Time:
    2:12 AM
    latest
    latest
    tried this but it's still there.

    had to set NGINX_PAGESPEED=n and then recompile nginx

    but I'm still wondering why it's still enabled when it is commented out in the conf.
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,702
    6,707
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,009
    Local Time:
    4:12 AM
    Nginx 1.13.x
    MariaDB 5.5