Join the community today
Become a Member

Nginx PageSpeed If I'll try to use CDN

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

  1. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I did report it, they said right now there's now way to change HIT from to show my zonealias. It will only show the zonename heh

     
  2. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    Maybe the host name matter? (phcorner.a.cdnify.io)
    I'm just using the default host name/sub domain for my zone, I did not create a specific cname for my domain.

    I mean for the pagespeed issue I have, that it's not working.
     
  3. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    Using Keycdn and pagespeed, did your image also rewritten to webp ? or js and css also compress by pagespeed?
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    could be.. hence trial and error testing ;)

    yeah all pagespeed filters worked so webp etc :)

    edit: strange now keycdn assets show just HIT instead of HIT from zonename. That I can live with heh
     
  5. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    But I can't test it with my own cname, because I don't have wildcard ssl for now :(
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that's why I only use SSL Wildcard certificates these days - flexible for all projects I do via subdomains and SSL Wildcard only costs US$39.66/yr ;)
     
  7. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    Seriously? 39 USD per year? I want to avail!
     
  8. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    I just change it to:
    Code:
    pagespeed Domain http://phcorner.a.cdnify.io;
    pagespeed Domain https://phcorner.a.cdnify.io;
    pagespeed LoadFromFile "http://phcorner.a.cdnify.io" "/home/nginx/domains/phcorner.net/public";
    pagespeed LoadFromFile "https://phcorner.a.cdnify.io" "/home/nginx/domains/phcorner.net/public";
    Works perfect now, maybe multiple dot(.) sub domain confuse pagespeed.
    Thanks for your time Eva!
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah well it's US$119 for 3yr SSL Wildcard so yeah US$39.66/yr :)
    Glad to hear it works now :)
     
  10. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    KeyCDN manually enabled SPDY SSL for my CDN zone

    Code:
    x-page-speed    1.8.31.4-4009
    date    Wed, 20 Aug 2014 04:14:52 GMT
    content-encoding    gzip
    x-frame-options    SAMEORIGIN
    server    nginx
    x-edge-location    sgsg
    strict-transport-security    max-age=31536000; includeSubdomains
    x-cache    HIT
    content-type    text/html; charset=UTF-8
    status    200 OK
    cache-control    max-age=0, no-cache
    vary    Accept-Encoding
    alternate-protocol    443:npn-spdy/3
    version    HTTP/1.1
    seems for webpagetest.org Dulles region test KeyCDN has a higher TTFB (cdnk1 hostname) compared to my own custom SPDY SSL CDN proxy (cmstatic1 hostname) WebPagetest Test Details - Dulles : KeyCDN...nity.centminmod.com - 08/20/14 04:44:37

    webpagetest_cdnk1_keycdn_ttfb_slower_00.png
     
    Last edited: Aug 20, 2014
  11. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    Since Implementing ngx_pagespeed on my CDN resource my average page load time on GA drops 50% :)
    I hope CDNify implement SPDY for my zone soon, I'm sure it will drop more my average load time.
     
  12. eva2000

    eva2000 Administrator Staff Member

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

    this forum added more js/data assets to KeyCDN so for Asian folks probably hitting their Signapore edge location. Should be faster for you compared to California server location :)

    their edge locations

    Code:
    Data Centers Americas
    Chicago, USA
    Dallas, USA
    Jacksonville (FL), USA
    Los Angeles, USA
    San Jose, USA
    Seattle, USA
    Washington D.C., USA
    
    Data Centers Europe
    Frankfurt, Germany
    London, UK
    Milano, Italy
    Moscow, Russia
    Roubaix, France
    Stockholm, Sweden
    Valencia, Spain
    
    Data Centers Asia
    Singapore
    Hong Kong, China
    Tokyo, Japan 
     
    Last edited: Aug 20, 2014
  13. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    @eva2000 May I know your settings here?
    upload_2014-8-21_5-19-7.png

    For Zone type, I choose Push right ?
    Sorry 2nd time only to use CDN.
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    pull zone = means automaticlly pull your original assets to the cdn edge servers
    push zone = you need to upload assets to their cdn edge servers and incur storage charges

    my settings with KeyCDN

    keycdn_settings_pullzone_00.png

    keycdn_settings_pullzone_01.png
     
  15. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    Just feedback, KeyCDN has much better performance than CDNify for me and also on Gtmetrix with different location test.
    Maybe because CDNify is not yet SPDY enabled.
    Happy to use KeyCdn :)
     
  16. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nice but i thought cdnify already has SPDY support ?

    I am seeing some nice performance in some regions - mainly where KeyCDN has a edge location server :)

    Canada still doesn't have an edge location with KeyCDN as it's served from Washington DC edge location, but KeyCDN said they are planning a Canadian edge location for roll out :)

    I definitely notice better speed and responsiveness on your forums as it's being served from Singapore as opposed to OVH/Canada which has 340+ ms pings for me in Australia
     
  17. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    They disable it temporarily for some maintenance.
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,106
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh I see :)
     
  19. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    Hongkong, Japan and Singapore are supported by KeyCDN, better for me :D
     
  20. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    11:15 PM
    Mainline
    10.2
    But the price of KeyCDN is almost half much cheaper than CDNify.
    Though CDNify has much better UI.
    Easy to use than KeyCDN.