Skip to content

Add support for Cache-Control when posting blobs #41

@toncid

Description

@toncid

There seems to be no way to set Cache-Control for a blob object. Adding support for it seems to be straightforward.

For example, put_blob_single might look like this:

headers = {
  "x-ms-blob-type": "BlockBlob",
  "Content-Length": content_size(content),
  "Content-Type": options[:content_type],
  "Cache-Control": options[:cache_control],  # <<<<< new header
  "x-ms-blob-content-md5": options[:content_md5],
  "x-ms-blob-content-disposition": options[:content_disposition],
}.merge(additional_headers(options))

We can consider extending options to allow all supported properties.

Is this something that could be considered to be added into the library?
Would my PR be an option you would consider?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions