Learn about Centmin Mod LEMP Stack today
Become a Member

SSL Letsencrypt Cloudflare Is it worth installing letsencrypt when you have cloudflare

Discussion in 'Domains, DNS, Email & SSL Certificates' started by yunos, Jul 28, 2019.

  1. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:53 PM
    1.8.0
    i get content error when i wanted to create thread in the right sub forum so im posting here
    https://i.imgur.com/vYvqYnS.png


    so question to all, is it worth it or just pointlessly redudant?
    are there any benefit with letsencrypt/nginx ssl optimization on server end
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:53 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  3. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:53 PM
    1.8.0
    that was alot of information to take. if i went with cloudflare origin certificate that means the server will stop using letsencrypt completely?
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:53 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yes it will stop serving the letsencrypt ssl cert to cloudflare during communication and use cloudflare origin ssl cert instead
     
  5. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:53 PM
    1.8.0
    enabling cloudflare and doing webpagetest i noticed it timefirst byte went from 340 ms to 800ms to 1 seconds
     
  6. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:53 PM
    1.8.0
  7. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:53 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    You have 3+ megabyte sized pages from those screenshots so things will be slow either way - trying to keep page size between 200-800KB for non-image heavy pages is ideal and <800-1500kb for image heavy pages is also ideal

    TTFB speed is relative so if your origin web server is located further away from WPT test location then TTFB is higher.

    This is due to Cloudflare not caching HTML content by default (see below). So for optimal TTFB speed, you want your origin real web server to be hosted in a location closest to your majority traffic visitors and then put Cloudflare in front. For instance, my forums has 50% US visitors 40% Asian visitors and 10% Oceania. So my optimal geographic location for my origin is US West Coast as it sits in middle of US, Europe and Asian so equal round trip times for majority of visitors.

    With Cloudflare enabled, TTFB isn’t as important when you compare to first paint, first contentful and meaningful paint and document load times. As those are metrics Google is looking for https://developers.google.com/web/fundamentals/performance/user-centric-performance-metrics and where Cloudflare will help you optimise for when it’s enabled.

    webpagetest.org has advanced features you can use to reveal these additional Google focused pagespeed metrics i.e. Google Lighthouse Report

    I wrote a guide for my users which maybe useful to you as well including enabling Google Lighthouse Report testing in WPT https://community.centminmod.com/threads/how-to-use-webpagetest-org-for-page-load-speed-testing.13859

    Cloudflare cache certain static content https://support.cloudflare.com/hc/en-us/articles/200172516-Which-file-extensions-does-CloudFlare-cache-for-static-content but not dynamic/static generated html itself by default (which is what WPT TTFB is testing for). But you can tell Cloudflare to cache dynamic/static generated html content to some extent depending on Cloudflare plan you’re on via cache everything page rule but have to be careful to only do this for static html content and not dynamic html content (otherwise you would cache private logged in user content).
     
  8. yunos

    yunos Member

    130
    3
    18
    Aug 8, 2015
    Ratings:
    +17
    Local Time:
    3:53 PM
    1.8.0
    oh caching static html did wonder, first byte is around 400 ms now with cloudflare after retrying webpagetest website few times.
    thanks :)
    although im not sure if i should touch anything regarding letsencrypt or nginx on my end to "make it faster" as you originally stated