Skip to content

object_store: Cache-Control header usage #4498

Description

@Turbo87

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions