Want to subscribe to topics you're interested in?
Become a Member

WebPerf Real World Results - Caching Anonymous Pages w/ CloudFlare

Discussion in 'All Internet & Web Performance News' started by BamaStangGuy, Mar 24, 2017.

  1. BamaStangGuy

    BamaStangGuy Active Member

    470
    137
    43
    May 25, 2014
    Ratings:
    +180
    Local Time:
    7:25 PM
    So I spent a few hours tonight playing with CloudFlare's API have these two rules:

    Screen Shot 2017-03-24 at 6.17.04 AM.png
    Screen Shot 2017-03-24 at 6.17.12 AM.png

    We are using this add-on for the cookie: Logged In Cookie

    and I am using the CloudFlare Api + a cron running every minute (right now, may lengthen it at some point).

    The results?

    Screen Shot 2017-03-24 at 6.14.23 AM.png

    :D :D :D :D :D

    So now, for one minute, CloudFlare is serving our home page and our /forums/ page from their Edge servers all over the world while members are still getting real time fresh reloads.

    From here, I am going to look into integrating the API directly into XenForo so that I can start caching all thread pages except the last for page.

    Lots of fun ahead :D
     
    Last edited: Mar 24, 2017
    • Winner Winner x 1
  2. BamaStangGuy

    BamaStangGuy Active Member

    470
    137
    43
    May 25, 2014
    Ratings:
    +180
    Local Time:
    7:25 PM
    Last edited: Mar 24, 2017
  3. BamaStangGuy

    BamaStangGuy Active Member

    470
    137
    43
    May 25, 2014
    Ratings:
    +180
    Local Time:
    7:25 PM
    Something seems wrong with your image proxy here. Shows up if I go to edit the post.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:25 AM
    Nginx 1.13.x
    MariaDB 5.5
    nice but what's difference between those 2 displayed rules, they seem to be the same page rule ?
    Yeah some imgurl hostnames have problems with image proxy when it's setup through $config['untrustedHttpClient'] defined HTTP proxy while other imgurl hostnames are fine!

    Probably easier to just paste cropped screenshots as attachments :)
     
  5. BamaStangGuy

    BamaStangGuy Active Member

    470
    137
    43
    May 25, 2014
    Ratings:
    +180
    Local Time:
    7:25 PM
    Accidentally added one twice. Fixed.

    Also, now have these caching for 30 minutes for guests:

    Screen Shot 2017-03-24 at 6.56.27 AM.png
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:25 AM
    Nginx 1.13.x
    MariaDB 5.5
    nice.. thanks for sharing and another site/tool to check out now too Byte Check - Check Your Time To First Byte though the result is only relative to their server location and yours as latency matters for TTFB and their servers seem to be hosted in New York so US East coast. And yours is in OVH CA so latency wise much closer :)

    upload_2017-3-25_0-10-2.png

    best page load tester is still WebPagetest - Website Performance and Optimization Test :)

    Example webpagetest dulles cable results for your forums https://www.webpagetest.org/result/170324_T0_3M3Z/
     
    Last edited: Mar 25, 2017
  7. BamaStangGuy

    BamaStangGuy Active Member

    470
    137
    43
    May 25, 2014
    Ratings:
    +180
    Local Time:
    7:25 PM
    The imgur screenshot above is to Australia. We have quite a few members on CF that post from there so I have been working to get page loads down for especially that area.
     
    • Informative Informative x 1
  8. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:25 AM
    Nginx 1.13.x
    MariaDB 5.5
    FYI Webpagetest.org AWS EC2 test servers always seem to be overloaded so test slower in some locations, so test multiple geographic locations to be sure as well.
     
  9. deltahf

    deltahf Active Member

    207
    101
    43
    Jun 8, 2014
    Ratings:
    +154
    Local Time:
    8:25 PM
    Wow, I didn't know we could check cookies with Page Rules now. That does indeed change everything!

    Might have to reconsider CloudFlare now...
     
    • Like Like x 1
  10. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:25 AM
    1.11
    10.2
    Cloudflare Business Plan only.