Skip to content

Support for exposing Cache-Control-related headers in response #227

Answered by 4141done
andrew-demb asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @andrew-demb - very sorry for the delay in my response. Thank you for providing so much detail in your question.

My understanding is that you want to generate your own unique Cache-Control headers in the response from the s3 gateway. You do not want to pass on headers from S3, correct?

In any case, we include a blank configuration file(https://github.com/nginxinc/nginx-s3-gateway/blob/master/common/etc/nginx/templates/gateway/s3_server.conf.template) that you can override to inject your own configuration. Instructions for how to do that are here https://github.com/nginxinc/nginx-s3-gateway/blob/master/docs/development.md#stub-files

In that file, if you add something like

add_header "…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrew-demb
Comment options

Answer selected by andrew-demb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants