It would be great if you could set headers in netlify.toml for specific contexts, like:
[context.branch-deploy]
[[headers]]
for = "/*"
[headers.values]
X-Robots-Tag = "noindex"
That’s a real use-case in the example – preventing branch deploys from being indexed.
I know there’s a workaround, but this way makes sense, and would be easy to maintain.