Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
_headers file in astro project - Cloudflare Developers
CD
Cloudflare Developers
•
2y ago
•
9 replies
morriq
_headers file in astro project
Greetings
,
I
'm using astro framework with cloudflare adapter
:
https://docs.astro.build/en/guides/integrations-guide/cloudflare
I tried to implement
_headers file
. And it works with static site mode
, but not with
output: server
output: server
.
In both cases cf detects
_headers file
(pic related
) but it does not apply it here
https://e930aa71.code-webapp.pages.dev/
and applies it here
https://ff87c8cd.code-webapp.pages.dev/
The only one difference between two links is
output: server
output: server
in first one
, and
output: hybrid
output: hybrid
in second one
(it treats it like static site
)
.
I found similar thread
https://community.cloudflare.com/t/values-in-headers-files-arent-applying-for-custom-domain/625640/5
but no help there
.
If you can
't help me maybe you know where I should send an issue
.
Docs
@astrojs/cloudflare
Learn how to use the
@astrojs
/cloudflare SSR adapter to deploy your Astro project
.
Welcome to Astro.
Astro description
Welcome to Astro.
Astro description
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
_headers file and Astro
CD
Cloudflare Developers / pages-help
15mo ago
_headers file issues
CD
Cloudflare Developers / pages-help
3y ago
Astro project not caching
CD
Cloudflare Developers / pages-help
3y ago
How to implement nonce in _headers file?
CD
Cloudflare Developers / pages-help
14mo ago