Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloudflare and Firebase

Is it possible to use Cloudflare to reduce the stress on my firebase landing page? If so, how would I go about setting that up? This is a relatively new concept to me.

like image 376
JamesG Avatar asked Dec 01 '17 00:12

JamesG


People also ask

Does firebase use Cloudflare?

Setting up Firebase hosting to use Cloudflare is pretty simple. Go to Cloudflare and add your website. You'll need to update your domain registrar to point to Cloudflare so the DNS entries can be managed. In the Firebase console go to Hosting and click the “Add Custom Domain” button.

How do I put Cloudflare in front of Firebase?

A lot of people have been asking if you can put a Content Delivery Network (CDN) like Cloudflare in front of Firebase Cloud Storage. Unfortunately, Firebase storage doesn't allow custom domains, so there is no easy way to add a CDN. So officially, no.

Does firebase prevent DDoS?

Not only does it protect you from DDoS attacks, but saves you hits against your usage quota. Article I wrote on why have a CDN in front of Firebase.

Does firebase use CDN?

Firebase Hosting uses a powerful global CDN to make your site as fast as possible. Any requested static content is automatically cached on the CDN. If you redeploy your site's content, Firebase Hosting automatically clears all your cached static content across the CDN until the next request.


1 Answers

This is possible but not recommended. Firebase Hosting is already served via a global CDN and is built to take on enormous scale. By using CloudFlare acceleration (using it just for DNS is perfectly fine) in front of Firebase Hosting you are likely to slow down your site by adding an extra proxy layer between the client and the content.

like image 98
Michael Bleigh Avatar answered Sep 30 '22 08:09

Michael Bleigh