Headers in netlify.toml

Hi everyone,

I’m trying to figure out how to configure my headers by filetype, but I can’t find a good solution.
I’ve currently set for = “/*” but I’d like to exclude for example CSS/JS files because I don’t want a specific header for them.

Should I exclude the file extension? Or is it possible to delete/reset the header for specific files?

Hi Andy,

What other header rules are you trying to add? You can’t create an exclusionary rule so you may have to be creative. I don’t know if there are any workarounds for what you are doing without knowing your directory file structure and all of the rules you need.

Hello @futuregerald, in the meanwhile I found out that it’s indeed not possible. So I went for the copy/paste solution anyways.