Learn about Centmin Mod LEMP Stack today
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

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:54 PM
    Mainline
    10.2
    Do you have a page here to test?
    probably with many images long way down.

     
  2. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:54 PM
    Mainline
    10.2
    SADLY lazy_load doesn't work for me :(
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    try disabling KeyCDN and see to confirm
     
  4. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:54 PM
    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

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:54 PM
    Mainline
    10.2
    On my Site?
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah

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

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:54 PM
    Mainline
    10.2
    I have just contact them.
    Hope they can enable SSL3 and OCSP Stapling.
     
  8. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:54 PM
    Mainline
    10.2
    I'm using KeyCDN again now. :)
    And Back to SYS server cause DO has very slow CPU.
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah DO uses slower clocked Intel Xeon E5-2630L cpus that's why
     
  10. JarylW

    JarylW Active Member

    216
    41
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +103
    Local Time:
    11:54 PM
    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
  11. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    10:54 AM
    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

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    in pagespeed.conf

    cmd shortcut = pscontrol edit

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

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    10:54 AM
    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

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    after editing pagespeed.conf need to restart nginx
     
  15. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    10:54 AM
    latest
    10
  16. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    10:54 AM
    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

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:54 PM
    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 :)
     
  19. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah you can do that too :)