hicommonwealth / commonwealth

A platform for decentralized communities
https://commonwealth.im
GNU General Public License v3.0
67 stars 44 forks source link

Cloudflare Optimizations for Custom Domains #2684

Open dillchen opened 1 year ago

dillchen commented 1 year ago

Description

Currently custom domains are slow I.e forums.dydx.community (especially if they do not use a CDN) => figure out a way to get the same performance we have on our live site for custom domains) See test here: https://www.webpagetest.org/result/230207_AiDcX5_BJH/1/details/#waterfall_view_step1

Who is the bug affecting?

dydx, and all users of custom domains

What is affected by this bug?

When does this occur?

Where on the platform does it happen?

How do we replicate the issue?

Expected behavior (i.e. solution)

It should load (in ~3 seconds) for FCP => https://www.webpagetest.org/result/230206_BiDcJG_GHG/1/details/#waterfall_view_step1

Other Comments

dillchen commented 1 year ago

CNAME: forums.dydx.community ⇒ dydx.commonwealth.im

dillchen commented 1 year ago
  1. https://community.cloudflare.com/t/ttfb-too-high-1-2-sec-on-cloudflare/11787
jnaviask commented 1 year ago

We can test this out against affinity.fun:

  1. Set up a custom domain on QA for dydx.affinity.fun.
  2. Set up dydx.affinity.fun on cloudflare to point to the heroku DNS target.
  3. Set up a secondary domain that points to dydx.affinity.fun.