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?
There seems to be no way to set
Cache-Controlfor a blob object. Adding support for it seems to be straightforward.For example,
put_blob_singlemight look like this:We can consider extending
optionsto 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?