Learn about Centmin Mod LEMP Stack today
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:
    +162
    Local Time:
    7:05 PM
    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. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    7:05 PM
    Mainline
    10.2
    Try "pscontrol off" ?
     
  3. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    7:05 PM
    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

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    9:05 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+