Discover Centmin Mod today
Register Now

WebPerf Cloudflare This forum's pagespeed.conf

Discussion in 'Web Development & Web Performance' started by eva2000, May 26, 2014.

  1. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:33 AM
    Mainline
    10.2
    You have some duplicate filters.

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    which ones ?
     
  3. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:33 AM
    Mainline
    10.2
    pagespeed MaxInlinedPreviewImagesIndex
    pagespeed MinImageSizeLowResolutionBytes
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nice eyes there.. thanks fixed :D
     
  5. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    4:33 AM
    1.7.1
    /
    Hello George,

    your configuration for ngx_pagespeed seems very interesting. Actually therefore, I have WordPress as homepage and Xenforo as subdomain, called "forum". Is possible set two different pagespeed's configuration, one for portal and another for forum?
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    most of the pagespeed filters can be enabled on location context basis for specific urls i.e. / and /forum, you'd need a separate pagespeed.conf in the 2nd location usually

    so
    Code:
    # ngx_pagespeed & ngx_pagespeed handler
    include /usr/local/nginx/conf/pagespeed.conf;
    include /usr/local/nginx/conf/pagespeedhandler.conf;
    include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
    location /forum {
    include /usr/local/nginx/conf/pagespeed_forum.conf;
    }
    if the separate subdomain is a separate Nginx vhost conf created via menu option #2 add vhost, then you already would have separate pagespeed conf files for each Nginx vhost
     
  7. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    4:33 AM
    1.7.1
    /
    Hello George,

    no, the subdomain has the same vhost conf in Nginx; they are declareted in two parts inside the file. I will try method 1, thanks!
     
  8. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:33 AM
    Mainline
    10.2
    Does your 1st post the most updated config your using on this forum?
    I think I want to re-visit enabling pagespeed on my forum :)

    Does image lazy load working now?
    I might rollback to old version of pagespeed.
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah first post is most updated pagespeed.conf

    unfortunately lazy loading not working all the time, maybe sometimes but i left it enabled as sometimes is still better than never :D

    old version of ngx_pagespeed won't work with newer Nginx versions, hence why the need to force newer ngx_pagespeed 1.8.31.x on all Centmin Mod Nginx users :)
     
  10. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:33 AM
    Mainline
    10.2
    On my old config, I have this filters enabled:

    Any reason you didn't use them here?
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  12. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    look like dedup working according to PageSpeed stats

    Code:
    num_dedup_inlined_images_candidates_found:                       485
    num_dedup_inlined_images_candidates_replaced:                    314
     
  13. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    haven't touched local storage cache though it's always been tempting but it's a moderate to high risk filter https://developers.google.com/speed/pagespeed/module/filter-local-storage-cache

     
  14. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:33 AM
    Mainline
    10.2
    Redundant:
    pagespeed Disallow */conversations/popup*;
    pagespeed Disallow */conversations/*;
     
  15. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:33 AM
    Mainline
    10.2
    With my new forum style/theme, I just tried now to enable pagespeed defer again ;)
    And also include bdcache css.

    upload_2014-8-12_19-0-39.png

    upload_2014-8-12_19-0-50.png
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nice :D

    yeah just covering all my bases hehe
     
  17. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:33 AM
    Mainline
    10.2
    ngx pagespeed defer filter is still a problem on me, Notices doesn't load fine for guest.
    Maybe it's not compatible with XenForo, or how XenForo display the notices.
     
  18. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    10:33 AM
    Mainline
    10.2
    On what page we can trigger this uri?
    pagespeed Disallow */edit-inline*;
    pagespeed Disallow */save-inline*;
    pagespeed Disallow */reply/preview*;
    pagespeed Disallow */alerts-popup*;


    Can't take user's always complaining broken page, so filter out again bdcache.
     
    Last edited: Aug 13, 2014
  19. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah need bdcache to support selection of what css files get aggregated as i think some notices use javascript and it calls some css on the fly which pagespeed might not be able to beacon/detect for ?

    the first 3 are on thread pages and last is alert popups
     
  20. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    12:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Added the Xenforo Paypal IPN call back url to exclusion list for PageSpeed just in case

    Code:
    pagespeed Disallow */payment_callback.php*;