[Opinion] Best Way To Use Railway CDN and Cloudflare CDN

4 months ago

Hi, so I noticed Railway now has pushed Edge CDN to GA.

I was wondering, if I already have Cloudflare as my CDN (with very specific rules set up), would it be wise to also set up Railway CDN similarly? I have heard that stacking CDN on top of one another is not a good practice, but idk, what do you guys think?

Also, is there an API for me to programmatically purge the cache, and does it allow batch sending of URLs or wildcards like how Cloudflare allows you to purge by URL/Hostname/Tag/Pattern Prefix

Closed

6 Replies

4 months ago

Railway now routes you to the closest PoP (Point of Presence) so your request enters the internal network faster

You can definitely keep Cloudflare proxied on, if anything, it might further reduce latency


4 months ago

oh so both between CF and Railway? INteresting


4 months ago

yeah If that is the case I need the API to purge


4 months ago

Railway's edge is Railway, it's always on


4 months ago

Yeah I know it's always on, but I have disabled the cache feature on the service settings. Just wanted to know if I should also enable it so I have both caches on Railway AND Cloudflare, or leave it disabled so it's just Cloudflare only


4 months ago

I recommend Cloudflare-only, more customizability, more PoPs to cache to


Welcome!

Sign in to your Railway account to join the conversation.

Loading...