Join the community today
Register Now

PageSpeed This forum's pagespeed.conf

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

  1. rdan

    rdan Well-Known Member

    4,613
    1,112
    113
    May 25, 2014
    Ratings:
    +1,638
    Local Time:
    9:32 PM
    Mainline
    10.2
    You have some duplicate filters.
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    which ones ?
     
  3. rdan

    rdan Well-Known Member

    4,613
    1,112
    113
    May 25, 2014
    Ratings:
    +1,638
    Local Time:
    9:32 PM
    Mainline
    10.2
    pagespeed MaxInlinedPreviewImagesIndex
    pagespeed MinImageSizeLowResolutionBytes
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    nice eyes there.. thanks fixed :D
     
    • Like Like x 1
  5. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    3:32 PM
    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

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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
     
    • Like Like x 1
  7. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    3:32 PM
    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

    4,613
    1,112
    113
    May 25, 2014
    Ratings:
    +1,638
    Local Time:
    9:32 PM
    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

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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 :)
     
    • Like Like x 1
  10. rdan

    rdan Well-Known Member

    4,613
    1,112
    113
    May 25, 2014
    Ratings:
    +1,638
    Local Time:
    9:32 PM
    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

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  12. eva2000

    eva2000 Administrator Staff Member

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    look like dedup working according to PageSpeed stats

    Code:
    num_dedup_inlined_images_candidates_found:                       485
    num_dedup_inlined_images_candidates_replaced:                    314
     
    • Like Like x 1
  13. eva2000

    eva2000 Administrator Staff Member

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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

    4,613
    1,112
    113
    May 25, 2014
    Ratings:
    +1,638
    Local Time:
    9:32 PM
    Mainline
    10.2
    Redundant:
    pagespeed Disallow */conversations/popup*;
    pagespeed Disallow */conversations/*;
     
  15. rdan

    rdan Well-Known Member

    4,613
    1,112
    113
    May 25, 2014
    Ratings:
    +1,638
    Local Time:
    9:32 PM
    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
     
    • Like Like x 1
  16. eva2000

    eva2000 Administrator Staff Member

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    nice :D

    yeah just covering all my bases hehe
     
  17. rdan

    rdan Well-Known Member

    4,613
    1,112
    113
    May 25, 2014
    Ratings:
    +1,638
    Local Time:
    9:32 PM
    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

    4,613
    1,112
    113
    May 25, 2014
    Ratings:
    +1,638
    Local Time:
    9:32 PM
    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

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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
     
    • Like Like x 1
  20. eva2000

    eva2000 Administrator Staff Member

    41,389
    9,298
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,264
    Local Time:
    11:32 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Added the Xenforo Paypal IPN call back url to exclusion list for PageSpeed just in case

    Code:
    pagespeed Disallow */payment_callback.php*;