1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cache settings for CloudFlare

Discussion in 'Server Configuration and Hosting' started by Recep Baltaş, Apr 28, 2015.

  1. Recep Baltaş

    Recep Baltaş Well-Known Member

  2. Solidus

    Solidus Well-Known Member

    Rocket mode off with aggressive caching and 1 week ttl. Minify everything.
    Page rule for admin isn't needed.
     
  3. Rob

    Rob Well-Known Member

    Yeah, thats the exact setttings I have, except there is no "week" TTL..... 8 days I have mine set to.
     
  4. imthebest

    imthebest Formerly Super120

    Do you really need the caching of CloudFlare? I mean are you running out of bandwidth or something like that? I use CloudFlare and I disabled every form of caching from their control panel since day 1. The result: ZERO problems.

    The only reason why I use CF is to prevent attackers from knowing my server IP.
     
  5. RoldanLT

    RoldanLT Well-Known Member

    My current settings:
    upload_2015-4-29_0-52-26.png
     
    KeVo likes this.
  6. sbj

    sbj Well-Known Member

    I'm using 1 day for browser cache expiration. Should I change that?
     
  7. Rob

    Rob Well-Known Member

    Why not use caching? Caching means that resources are served via cloudflare and saves your server resources. Result, less server bandwidth and faster website. I have zero problems, the trick is to NOT enable the rocket loader.

    Incidentally, my GTMetrix page speed grade is A (97%)
     
  8. Solidus

    Solidus Well-Known Member

    You like Mirage 2? It's really bad for me.
     
  9. RoldanLT

    RoldanLT Well-Known Member

    I didn't have problems with it.
    What are your issues while using it?
     
  10. Solidus

    Solidus Well-Known Member

    Images load very slowly.
     
  11. Recep Baltaş

    Recep Baltaş Well-Known Member

    That is the same reason we are using CloudFlare. We were under heavy attack.

    Thank you all for your replies. I will set it according to your advices after my hosting provider fine tunes everything after the CloudFlare switch.
     
  12. RoldanLT

    RoldanLT Well-Known Member

    Cloudflare doesn't help much about DDOS attacks.
    You need a solid hardware/data center protection with that, Like OVH/SoYouStart/Versaweb.
     
  13. imthebest

    imthebest Formerly Super120

    I have been using CF for 3+ years now and I can safely say that it helps A LOT against DDoS attacks.
     
  14. RoldanLT

    RoldanLT Well-Known Member

    With Layer 7 type of attacks, I can say NO. :)
     
  15. imthebest

    imthebest Formerly Super120

    It even works against Layer 7 attacks but you need the Business plan ($200/m) and set your protection level to High or get into the "I'm under attack mode".
     
  16. RoldanLT

    RoldanLT Well-Known Member

    I swear, new type of attacks can bypass that mode.
    You still need a solid hardware on your server.
     
  17. Amin Sabet

    Amin Sabet Well-Known Member

    @RoldanLT - Does Mirage work with image attachments now? Last time I used Cloudflare, it didn't recognize Xenforo attachments as images.

    I am currently using KeyCDN for my attachments, but KeyCDN doesn't optimize images for mobile at all.
     
  18. RoldanLT

    RoldanLT Well-Known Member

    Not sure about that.
    But I force cache it anyway.
     
    Pierce and Amin Sabet like this.
  19. Pierce

    Pierce Active Member

    I cache the data and avatar folders for 1 hour and the results in cloudflare cache hit rate was crazy high.
     
    Amin Sabet likes this.
  20. RoldanLT

    RoldanLT Well-Known Member

    What if the user change avatar?
     

Share This Page