Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx PageSpeed Nginx Pagespeed Troubleshooting issues and errors

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by BamaStangGuy, May 25, 2014.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    45,703
    10,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,103
    Local Time:
    8:05 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    is it even pagespeed related ?

    you could try disabling it for admin within nginx vhost config, something like

    Code:
      location ~ ^/(admin.php) {
            pagespeed off;
            include /usr/local/nginx/conf/php.conf;
            allow 127.0.0.1;
            allow yourip;
            deny all;
    }
    remove allow, deny part if you do not ip restrict the admin.php area
     
    Last edited: May 30, 2014
  2. BamaStangGuy

    BamaStangGuy Premium Member Premium Member

    651
    189
    43
    May 25, 2014
    Ratings:
    +264
    Local Time:
    4:05 AM
    It isn't because it happens on a forum of mine that isn't using pagespeed. Now I just got to figure out what add-on, past or present, is causing it.
     
  3. rdan

    rdan Well-Known Member

    5,009
    1,213
    113
    May 25, 2014
    Ratings:
    +1,839
    Local Time:
    6:05 PM
    Mainline
    10.2
    I got it now, looks like Defer JS addon, also applied to admin page :(
     
  4. BamaStangGuy

    BamaStangGuy Premium Member Premium Member

    651
    189
    43
    May 25, 2014
    Ratings:
    +264
    Local Time:
    4:05 AM
    Time for a bug report.
     
  5. rdan

    rdan Well-Known Member

    5,009
    1,213
    113
    May 25, 2014
    Ratings:
    +1,839
    Local Time:
    6:05 PM
    Mainline
    10.2
    Didn't notice this problem since defer js addon installed, I do not edit templates directly :)
    I'm using Template Modification in all my edits (y)
     
  6. rdan

    rdan Well-Known Member

    5,009
    1,213
    113
    May 25, 2014
    Ratings:
    +1,839
    Local Time:
    6:05 PM
    Mainline
    10.2
    In relation to pagespeed image lazy loading, it works now on my site, demo.
    Enabling SSL3 and Cloudflare cipher help? :D

    But doesn't work on 1st time visitor :(
     
    Last edited: Jul 7, 2014
  7. eva2000

    eva2000 Administrator Staff Member

    45,703
    10,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,103
    Local Time:
    8:05 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    wow weird indeed !

    yes first time won't work as intended and loads all images not just above fold as the beacon needs a few page loads to figure out which images are above fold :)

    yay !
     
  8. eva2000

    eva2000 Administrator Staff Member

    45,703
    10,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,103
    Local Time:
    8:05 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Well since forum updated to Cloudflare RC4 Kill patched OpenSSL, ngx_pagespeed lazy loading works more frequently but still takes a few page loads to work out which images are above and below fold for loading (which is normal)

    This thread has 76 requests and 1.8MB in size https://community.centminmod.com/threads/centos-7-0-install-on-virtualbox-guest-server.730/ without ngx_pagesped lazy_load and other optimisations. After ngx_pagespeed optimisation only 17 requests 267kb in size !

    Code:
    image_file_count_reduction:                                        0
    image_rewrites:                                                  125
    image_resized_using_rendered_dimensions:                           0
    image_norewrites_high_resolution:                                  0
    image_rewrites_dropped_intentionally:                             21
    image_rewrites_dropped_decode_failure:                             0
    image_rewrites_dropped_mime_type_unknown:                          0
    image_rewrites_dropped_server_write_fail:                          0
    image_rewrites_dropped_nosaving_resize:                            0
    image_rewrites_dropped_nosaving_noresize:                         21
    image_rewrites_dropped_due_to_load:                                0
    image_rewrites_squashing_for_mobile_screen:                        0
    image_rewrite_total_bytes_saved:                             1386508
    image_rewrite_total_original_bytes:                          3677030
    image_rewrite_uses:                                              854
    image_inline:                                                    740
    image_webp_rewrites:                                              68
    image_rewrite_latency_total_ms:                                45366
    image_ongoing_rewrites:                                            0
    image_webp_conversion_gif_timeouts:                                0
    image_webp_conversion_png_timeouts:                                0
    image_webp_conversion_jpeg_timeouts:                               0
    image_webp_alpha_timeouts:                                         0
    image_webp_opaque_timeouts:                                        0
    ngx_pagespeed_lazyload_optimised.png
     
  9. rdan

    rdan Well-Known Member

    5,009
    1,213
    113
    May 25, 2014
    Ratings:
    +1,839
    Local Time:
    6:05 PM
    Mainline
    10.2
    Yes, same here.
    After applying Cloudflare Cipher and patch, seems lazy Load work 80% of the time.
     
  10. eva2000

    eva2000 Administrator Staff Member

    45,703
    10,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,103
    Local Time:
    8:05 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    i think it works as expected as first few page loads is ngx_pagespeed beacon learning time :)
     
  11. rdan

    rdan Well-Known Member

    5,009
    1,213
    113
    May 25, 2014
    Ratings:
    +1,839
    Local Time:
    6:05 PM
    Mainline
    10.2
    Lucky me, I insisted you to try Cloudflare's Cipher and patch :D
     
  12. eva2000

    eva2000 Administrator Staff Member

    45,703
    10,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,103
    Local Time:
    8:05 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Yeah was wondering if it's the patch itself or the fact that with Cloudflare ssl protocols it allowed SSLv3 while we didn't have SSLv3 enabled ?
     
  13. rdan

    rdan Well-Known Member

    5,009
    1,213
    113
    May 25, 2014
    Ratings:
    +1,839
    Local Time:
    6:05 PM
    Mainline
    10.2
    Ahahaah, hmmm maybe.
    I can't answer that :)
     
  14. rdan

    rdan Well-Known Member

    5,009
    1,213
    113
    May 25, 2014
    Ratings:
    +1,839
    Local Time:
    6:05 PM
    Mainline
    10.2
    Did you submitted a discussion for this @ ngx_pagespeed google group?
    Might be better if you also update it that it works fine now with SSL3 enabled :)
     
  15. eva2000

    eva2000 Administrator Staff Member

    45,703
    10,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,103
    Local Time:
    8:05 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    nah i haven't yet.. will do
     
  16. rdan

    rdan Well-Known Member

    5,009
    1,213
    113
    May 25, 2014
    Ratings:
    +1,839
    Local Time:
    6:05 PM
    Mainline
    10.2
  17. eva2000

    eva2000 Administrator Staff Member

    45,703
    10,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,103
    Local Time:
    8:05 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    darn have to pay again to download the BD Cache update heh