Discover Centmin Mod 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. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    9:17 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 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

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 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

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    9:17 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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
     
    • Like Like x 1
  5. rdan

    rdan Well-Known Member

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 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

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    9:17 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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 ;)
     
    • Like Like x 1
  7. rdan

    rdan Well-Known Member

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 PM
    Mainline
    10.2
    Seriously? 39 USD per year? I want to avail!
     
  8. rdan

    rdan Well-Known Member

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 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!
     
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    9:17 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yeah well it's US$119 for 3yr SSL Wildcard so yeah US$39.66/yr :)
    Glad to hear it works now :)
     
    • Like Like x 1
  10. eva2000

    eva2000 Administrator Staff Member

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

    rdan Well-Known Member

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 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.
     
    • Like Like x 1
  12. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    9:17 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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
    • Like Like x 1
  13. rdan

    rdan Well-Known Member

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 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

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    9:17 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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
     
    • Like Like x 1
  15. rdan

    rdan Well-Known Member

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 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 :)
     
    • Like Like x 1
  16. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    9:17 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 PM
    Mainline
    10.2
    They disable it temporarily for some maintenance.
     
  18. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    9:17 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    oh I see :)
     
  19. rdan

    rdan Well-Known Member

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 PM
    Mainline
    10.2
    Hongkong, Japan and Singapore are supported by KeyCDN, better for me :D
     
    • Like Like x 1
  20. rdan

    rdan Well-Known Member

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:17 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.