Firebase Hosting Headers Config: Cache, Security, CORS
The headers block in firebase.json controls cache TTL, security policy, and CORS. Here is the minimum config that ships fast and safe — and the patterns that cost you.
Firebase Hosting deploy, custom domains, caching, and go-live checklists.
Firebase Hosting`s free tier is friendly to indie content sites and deployment is simpler than people think. This hub covers deploy, custom domain binding, cache behavior, and when Firebase Hosting is not the right choice.
The headers block in firebase.json controls cache TTL, security policy, and CORS. Here is the minimum config that ships fast and safe — and the patterns that cost you.
A no-nonsense 2026 walkthrough for shipping a static site (Astro, Vite, plain HTML) to Firebase Hosting in about 10 minutes — including SSL, custom domain, and cache headers.
Deployed but visitors see the old page? Use this firebase.json cache-header config, curl diagnostic, and rollback to flush stale content in seconds.
Add a custom domain to Firebase Hosting with the exact DNS records, dig commands for verification, and the common failures explained.
The Firebase Spark free tier in 2026 gives 10 GB storage + 360 MB/day egress. Use this page-weight math, budget config, and asset checklist to know if you fit.
A 10-item pre-launch checklist for sites going live on Firebase Hosting in 2026 — covering domain, SSL, cache, redirects, sitemap, Search Console, and rollback rehearsal.
Rewrites in Firebase Hosting let you map URLs to functions, Cloud Run, or single-page apps. Here is when each pattern is the right tool — and when rewrites cause more problems than they solve.
Pages that worked locally return 404 on Firebase Hosting. Use this diagnostic checklist with firebase.json snippets and curl commands to pinpoint the cause.
Firebase Hosting is Google's static + edge CDN service tied to Firebase. Here is when it fits, with the firebase.json baseline and deploy commands.
Both have generous free tiers and great DX. Here's how Firebase Hosting and Vercel differ on serverless, ecosystem, deployment, SEO, and pricing in 2026.