-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple headers? #24
Comments
Hello @llech ! You are right, the flag append-header is working on a single header. Do you want to contribute to goStatic? That would be a really nice feature 🚀 |
@PierreZ I like your server - is very nice :) - However currently I need something likie this: In my case I need to set "Content-Type: application/wasm" for all files *.wasm I never write anything in GO but I cant try to do it - my proposition is to add following parameter -append-file-headers path/to/file/with/wildcard*.wasm Content-Type:application/wasm,nextHeader:nextValue,... (so first we put file path, then headers separated by comma) @PierreZ what do you think about this? |
Maybe we should automatically detect wasm file and add the right header directly, what do you think about this @kamil-kielczewski? |
Is it possible to set multiple http headers?
I've added to my deployment:
args: ['-append-header', 'Content-Type:application/json', '-append-header', 'Cache-Control:max-age=120']
but only the 2nd header was added (Cache-Control).
The text was updated successfully, but these errors were encountered: