• Support
  • Improving Flarum speed with Cloudflare cache

Stylix58 Your site is down as per I can see or maybe you blocked some countries and a PRO tip use cloudflare and do the configuration I share you will get a A grade

    There are two main reasons I've been using cloudflare behind a proxy

    Really fast DNS updates. Sometimes I will allocate a forum to another server and not having a "up to" 48 hour update window is nice.

    It also hides some ports like ssh, even though it doesn't seem to help cut down on logs much 😅

    I'll share my experience in detail.

    Actually I feel using CF for DNS is only good Choice Else a Myth.

    1Dot
    Sorry but this domain is a subdomain, and Cloudflare don't allow that subdomain.

    1Dot i have setup a cloudflare account, you mentioned earlier

    1Dot You can still connect to terminal when you use cloudflare all you need to change NameServer and cloudflare doesn't even touches port 22

    After changing all proxied, below in SRV there is still parts of my host server, for example:

    Which one should we use in Target
    HERA.NS.CLOUDFLARE.COM or JIM.NS.CLOUDFLARE.COM
    is it really the one we should change for terminal to work?

      • [deleted]

      • Edited

      Braden for terminal to work you should just use SSH and connect to the IP address instead of the hostname. That way, you won't expose your IP address.

      • [deleted]

      • Edited

      1Dot this is incorrect. If you try to access SSH using the name of the domain (for example, ssh admin@nysite.com) and you are behind CF this will fail. It's because of the A record entry which CF will mask with one of its own IP addresses instead behind it's proxy.

      The nature of TCP is that the connection request waits up to 30 seconds for an ACK response it will never receive, and so it times out as a result.

        [deleted] Thank you ! It means the host terminal will nolonger be available ☹️ but instead you'll have to use a SSH program, omg! I wonder which answers will 1Dot come with after reading this

          • [deleted]

          Braden you can use the local command prompt on Windows for this. Just just ssh myuser@ipaddress -p 22 (I'm assuming Windows - it'll work massively in Linux also from CLI and you won't need the port if you are using the default.

            [deleted] i never thought there was that functionality with windows, thanks , but i will just use puTTy it seem simple to maneuver.

            In File Size Optimization, did enable Auto minify?

              Braden Hello yes you can still do ssh but with IP I was incorrect I by mistake said as I always do it with IP, I have a best tip for you use mobaxterm portable free version here your ip will be saved once you login and also you will be able to see a visual file manager so easy work actually. 😁

              Braden In File Size Optimization, did enable Auto minify?

              Yes it's good here is the detail tutorial for flarum written by me also the main thing is edge cache just enable that for a month (Not tention when you will update css/js it will be automatically done as flarum adds ?version in file) only for assets folder.

              wOW Flarum now is fast! 🔥

              And remaining

              I have a question, why in page rule use only EDGE cache , what would happen if we add browser cache.. too?

                • [deleted]

                Braden the browser cache default for CF is 4 hours. Your don't need the edge cache rule

                  • [deleted]

                  Braden Just make sure that Brotli is enabled plus http2 (which should be by default)

                    [deleted] in my country it scores A , i will stay away from embarrassments ☺️ at least they recognize if they thought we have been counting winds, We counting blessings! 😃
                    Luceos could have add About cloudflare and htaccess twerk

                    Braden page rule use only EDGE cache , what would happen if we add browser cache.. too?

                    Yes add it browser cache ttl to 1 month but if you see my tutorial i already told that set browser cache to 1 month in cache configuration.

                    [deleted] Your don't need the edge cache rule

                    He need it actually.

                      1Dot
                      Inside page rule setting
                      /assests/* my dir permission is 0755 meaning its okay cloudflare can read it? or should change to 0777 best for public view