• Support
  • Improving Flarum speed with Cloudflare cache

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

            • [deleted]

            1Dot He need it actually.

            He really doesn't. But ok, if you insist.

            Braden Don't set your permissions to 777.
            That's bad practice, dangerous, and generally not advised. Please don't do that.

            • [deleted]

            Braden please do not set your permissions to 777. This is really bad practice and the only thing you'll be able to guarantee is that your site is wide open to attack.

            Braden However Score is good too here with Cloudflare site

            Desktop

            Mobile

            • [deleted]

            Braden Yes. Google insights takes a different approach to treating a website and in all honesty, users some fairly bizarre metrics to calculate site speed. In addition, you never know exactly from which location your site is tested from and the speed is often 4G.

            Not really a fair representation.

              Braden As they are using redis and Cloudflare together with a very high end server from digital Ocean.

                GreXXL changed the title to Improving Flarum speed with Cloudflare cache .

                1Dot Braden discuss runs on a very simple digital ocean droplet (sponsored) and we use cloudflare because a few years ago we were under a ddos attack (a custom fail2ban to cloudflare scripts protected us). We don't use any of the additional features cf uses. Not even custom rules or edge workers.

                We do use redis, but the reason for that is to have a queue. Obviously sessions and cache are also stored in redis.

                So, why I don't use Cloudflare... Some Reasons in Points form.

                1. Free Tier of CF is quite confusing, HOW !

                I've about 7 Website using CF for DNS resolving. At the time I was using CF, two of my website were just Awesome, Fast, Great TTFB but rest were slow. I read some posts saying it's a marketing technique used by CF.

                1. IP conflict.

                Most of you're familiar with Real-IP issues while using CF.

                1. CF use NginX while I prefer LiteSpeed.

                Reason prefering LiteSpeed : Most of the hosted Website are using Wordpress and LiteSpeed Web Server with LS Cache is like Boon.

                1. Using Hetzner.

                I'm using a very Cheap Web Server (3.49 Euro) from Hetzner Cloud with DDOS Protection by Default (Thanks Hetzner).

                1. Completely Happy with Performance.

                I'm using IPv6 with HTTP/3 (QUIC) give boost to the performance using UDP.

                1. Issue with ISPs in India.

                ISPs of India (AirTel & RailTel) blocks some IP ranges of CF (IPv6 mostly). Reason behind this is Porn Ban and Piracy issues in India.

                1. Over All Ratings.

                I'm not saying CF is waste of time and money, I just saying if Your Server is performing great, using CF just to improve 1-2% of TTFB is not a good idea.

                Thanks LiteSpeed & Hetzner.