Welcome to Centmin Mod Community
Register Now

Nginx PageSpeed If I'll try to use CDN

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by rdan, Aug 18, 2014.

  1. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    11:02 AM
    Mainline
    10.2
    Do you have a page here to test?
    probably with many images long way down.
     
  2. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    11:02 AM
    Mainline
    10.2
    SADLY lazy_load doesn't work for me :(
     
  3. eva2000

    eva2000 Administrator Staff Member

    40,676
    9,042
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,918
    Local Time:
    1:02 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    try disabling KeyCDN and see to confirm
     
  4. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    11:02 AM
    Mainline
    10.2
    I'm on the process of purchasing cheap wildcard ssl but I have to assure all things I will be benefited on CDN.
    This one is blocking me.
    I prefer to disable CDN than to failed lazy_load.
     
  5. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    11:02 AM
    Mainline
    10.2
    On my Site?
     
  6. eva2000

    eva2000 Administrator Staff Member

    40,676
    9,042
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,918
    Local Time:
    1:02 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yeah

    or get KeyCDN to re-enable SSLv3 support
     
  7. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    11:02 AM
    Mainline
    10.2
    I have just contact them.
    Hope they can enable SSL3 and OCSP Stapling.
     
    • Like Like x 1
  8. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    11:02 AM
    Mainline
    10.2
    I'm using KeyCDN again now. :)
    And Back to SYS server cause DO has very slow CPU.
     
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    40,676
    9,042
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,918
    Local Time:
    1:02 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yeah DO uses slower clocked Intel Xeon E5-2630L cpus that's why
     
    • Like Like x 1
  10. JarylW

    JarylW Active Member

    216
    40
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +102
    Local Time:
    11:02 AM
    Sorry for necroing thread, but there aren't many CDN threads around.

    CDNSun is an interesting consideration - with many POPs, and only $17 setup fee , $12/year for custom SSL.

    Edit: testing on their shared SSL, there seems to be no spdy / ocsp stapling support. bummer..
     
    Last edited: Jan 19, 2015
    • Like Like x 1
  11. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    11:02 PM
    latest
    10
    pagespeed Domain cdn.example.com;
    pagespeed LoadFromFile "https://cdn.example.com" "/home/nginx/domains/example.com/public";

    For the above code, where did you put this exactly? vHost config, Nginx Config - pagespeed config? Little confused as to where I should put this...
     
  12. eva2000

    eva2000 Administrator Staff Member

    40,676
    9,042
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,918
    Local Time:
    1:02 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    in pagespeed.conf

    cmd shortcut = pscontrol edit

    to get to pagespeed.conf :)
     
  13. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    11:02 PM
    latest
    10
    Still not working. Should I try something else? I have enabled SPDY SSL with MaxCDN and my site
     
  14. eva2000

    eva2000 Administrator Staff Member

    40,676
    9,042
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,918
    Local Time:
    1:02 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    after editing pagespeed.conf need to restart nginx
     
  15. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    11:02 PM
    latest
    10
  16. eva2000

    eva2000 Administrator Staff Member

    40,676
    9,042
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,918
    Local Time:
    1:02 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    best to use troubleshooting steps at Nginx PageSpeed - Nginx Pagespeed Troubleshooting steps | Centmin Mod Community either the specific 2 values not set
    Code:
    pagespeed Domain cdn.example.com;
    pagespeed LoadFromFile "https://cdn.example.com" "/home/nginx/domains/example.com/public";
    or you have a specific exclusion for somewhere along the path of /wp-content/plugins/x-shortcodes/js/dist/site/x-shortcodes-head.min.js that you had added yourself. Or just check timestamp as it could be an entry prior to adding the above 2 values.
     
  17. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    11:02 PM
    latest
    10
    I got it working! BUT my site was REALLY messed up lol! Until I have time to dig deep in it, I'll have to put it to the site for now. I could be a MaxCDN issue or a filter - not sure yet - Thanks for your help George!
     
  18. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    11:02 AM
    Mainline
    10.2
    Haha, CLoudflare SPDY/HTTPS is very useful :D
    I'm creating my own SPDY+CDN based sub domain using Cloudflare service.

    Yes, My main forum domain is not using SPDY and CDN, but all my static files are using it :)
     
    • Like Like x 1
  19. eva2000

    eva2000 Administrator Staff Member

    40,676
    9,042
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,918
    Local Time:
    1:02 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yeah you can do that too :)