Want to subscribe to topics you're interested in?
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:
    12:04 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

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    12:04 PM
    Mainline
    10.2
    Try "pscontrol off" ?
     
  3. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    12:04 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.
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. eva2000

    eva2000 Administrator Staff Member

    40,644
    9,028
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,900
    Local Time:
    2:04 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x