Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How add headers to static assets? - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
5 replies
UlyssesZhan
How add headers to static assets?
I have tried
_headers
_headers
, functions
, and
_worker.js
_worker.js
. They works only when there is no static assets matching the request URI
. How to add headers to static assets
?
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
Static assets throwing 500
CD
Cloudflare Developers / pages-help
13mo ago
Static workers handling of headers is different
CD
Cloudflare Developers / pages-help
9mo ago
env.ASSETS.fetch doesn't return additional headers
CD
Cloudflare Developers / pages-help
2y ago
Pages local development with Wrangler - Static assets in /dist and Functions in /functions - How to
CD
Cloudflare Developers / pages-help
2y ago