Which part is this question about
object_store
Describe your question
https://docs.aws.amazon.com/whitepapers/latest/build-static-websites-aws/controlling-how-long-amazon-s3-content-is-cached-by-amazon-cloudfront.html and https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html describe that the Cache-Control header can be used to set the caching behavior for individual files.
Is there a way in object_store to use this header?
It appears to be possible to influence the default_headers of the underlying reqwest client, but that would presumably then set the header for all requests instead of just the PutObject requests.
Ideally it would be possible to set this value on a per-file basis, but for our use-case it would be sufficient to have this as an optional per-store setting.
Which part is this question about
object_storeDescribe your question
https://docs.aws.amazon.com/whitepapers/latest/build-static-websites-aws/controlling-how-long-amazon-s3-content-is-cached-by-amazon-cloudfront.html and https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html describe that the
Cache-Controlheader can be used to set the caching behavior for individual files.Is there a way in
object_storeto use this header?It appears to be possible to influence the
default_headersof the underlyingreqwestclient, but that would presumably then set the header for all requests instead of just thePutObjectrequests.Ideally it would be possible to set this value on a per-file basis, but for our use-case it would be sufficient to have this as an optional per-store setting.