---
id: "google-firebase-hosting"
type: "component"
kind: "cdn"
provider: "gcp"
category: "edge"
docs: "https://firebase.google.com/docs/hosting/manage-cache"
url: "https://localhost:3000/catalogue/components/google-firebase-hosting"
---

# Firebase Hosting

Global CDN hosting for web apps with automatic SSL and rewrites to backend code.

| | |
|---|---|
| Provider | [gcp](https://localhost:3000/catalogue?provider=gcp) |
| Kind | [CDN](https://localhost:3000/catalogue/kinds/cdn) |
| Category | Edge |
| Official docs | [https://firebase.google.com/docs/hosting/manage-cache](https://firebase.google.com/docs/hosting/manage-cache) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `automaticCompression` | boolean | — | no | true | inherited |
| `backendResponseCaching` | boolean | — | no | false | inherited |
| `backendRewrites` | boolean | — | no | false | inherited |
| `caching` | boolean | — | no | true | **true** |
| `customDomain` | boolean | — | no | false | inherited |
| `edgeCompute` | boolean | — | no | false | **false** |
| `managed` | boolean | — | no | true | **true** |
| `originShield` | boolean | — | no | false | **false** |
| `tls` | boolean | — | no | true | **true** |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 29

- [Alibaba Cloud CDN](https://localhost:3000/catalogue/components/alibaba-cdn.md) `alibaba-cdn` — alibabacloud
- [Dynamic Route for CDN](https://localhost:3000/catalogue/components/alibaba-dcdn.md) `alibaba-dcdn` — alibabacloud
- [Edge Security Acceleration](https://localhost:3000/catalogue/components/alibaba-esa.md) `alibaba-esa` — alibabacloud
- [AWS Amplify Hosting](https://localhost:3000/catalogue/components/aws-amplify-hosting.md) `aws-amplify-hosting` — aws
- [Amazon CloudFront](https://localhost:3000/catalogue/components/cloudfront.md) `cloudfront` — aws
- [Azure Content Delivery Network](https://localhost:3000/catalogue/components/azure-cdn.md) `azure-cdn` — azure
- [Microsoft Connected Cache](https://localhost:3000/catalogue/components/azure-connected-cache.md) `azure-connected-cache` — azure
- [Azure Front Door](https://localhost:3000/catalogue/components/azure-front-door.md) `azure-front-door` — azure
- [Azure Static Web Apps](https://localhost:3000/catalogue/components/azure-static-web-apps.md) `azure-static-web-apps` — azure
- [Cloudflare CDN](https://localhost:3000/catalogue/components/cloudflare-cdn.md) `cloudflare-cdn` — cloudflare
- [Cloudflare for SaaS](https://localhost:3000/catalogue/components/cloudflare-for-saas.md) `cloudflare-for-saas` — cloudflare
- [Akamai](https://localhost:3000/catalogue/components/akamai.md) `akamai` — default
- [bunny.net CDN](https://localhost:3000/catalogue/components/bunny.md) `bunny` — default
- [Generic CDN](https://localhost:3000/catalogue/components/cdn.md) `cdn` — default
- [CDN77](https://localhost:3000/catalogue/components/cdn77.md) `cdn77` — default
- [Content delivery network](https://localhost:3000/catalogue/components/content-delivery-network.md) `content-delivery-network` — default
- [Dragonfly](https://localhost:3000/catalogue/components/dragonfly-d7y.md) `dragonfly-d7y` — default
- [Fastly](https://localhost:3000/catalogue/components/fastly.md) `fastly` — default
- [imgix](https://localhost:3000/catalogue/components/imgix.md) `imgix` — default
- [KeyCDN](https://localhost:3000/catalogue/components/keycdn.md) `keycdn` — default
- [Netlify](https://localhost:3000/catalogue/components/netlify.md) `netlify` — default
- [Apache Traffic Server](https://localhost:3000/catalogue/components/trafficserver.md) `trafficserver` — default
- [Vercel](https://localhost:3000/catalogue/components/vercel.md) `vercel` — default
- [Spaces CDN](https://localhost:3000/catalogue/components/digitalocean-spaces-cdn.md) `digitalocean-spaces-cdn` — digitalocean
- [Google Cloud CDN](https://localhost:3000/catalogue/components/google-cloud-cdn.md) `google-cloud-cdn` — gcp
- [Media CDN](https://localhost:3000/catalogue/components/google-media-cdn.md) `google-media-cdn` — gcp
- [IBM Cloud Internet Services](https://localhost:3000/catalogue/components/ibm-internet-services.md) `ibm-internet-services` — ibm
- [OCI Media Streams](https://localhost:3000/catalogue/components/oci-media-streams.md) `oci-media-streams` — oci
- [Web Application Acceleration](https://localhost:3000/catalogue/components/oci-web-application-acceleration.md) `oci-web-application-acceleration` — oci

## Use it in a design

```yaml
nodes:
  - { id: "google-firebase-hosting", component: "google-firebase-hosting" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Firebase Hosting ("Firebase Hosting" overview and "Manage cache behavior"): static assets are
# cached on the global CDN edge and compressed automatically, and zero-configuration SSL means
# content is always served over HTTPS. Responses produced by rewrites to backend code are not
# cached at the edge by default.
schemaVersion: "1"
type: "component"
id: "google-firebase-hosting"
kind: "cdn"
provider: "gcp"
docs: "https://firebase.google.com/docs/hosting/manage-cache"
defaults:
  caching: true
  tls: true
  edgeCompute: false
  originShield: false
  managed: true
properties:
  backendRewrites:
    type: "boolean"
    default: false
  backendResponseCaching:
    type: "boolean"
    default: false
  automaticCompression:
    type: "boolean"
    default: true
  customDomain:
    type: "boolean"
    default: false
```

Human page: https://localhost:3000/catalogue/components/google-firebase-hosting
