Cloudflare _headers Tester
NewTest a Cloudflare Pages _headers file against any request path to see which headers are applied, with splat, placeholder and detach (!) support.
Rules apply top to bottom; all matching rules add headers, and repeated header names are joined with a comma. Use ! Header-Name to detach an inherited header. Applies to static assets only, not Pages Functions responses.
Frequently Asked Questions
How is _headers formatted?
A URL pattern on its own line followed by indented "Header-Name: value" lines. Blank lines separate rules.
What happens when several rules match?
All matching rules apply; repeated header names are joined with a comma.
How do I remove a header?
Use "! Header-Name" under a matching rule to detach a header added by an earlier rule.
Do _headers apply to Functions?
No, they apply only to static asset responses. Set headers in code for Functions responses.
Related Tools
Docker Cheatsheet
NewComplete reference for Docker CLI commands — containers, images, volumes, networks, and Compose.
Linux Commands Reference
NewSearchable reference for essential Linux/Unix commands with examples, flags, and descriptions.
Kubernetes Cheatsheet
Newkubectl reference — resources, deployments, rollouts, debugging, and troubleshooting.