skip to Main Content

Why isn't ContentSettings cache_control max-age being honored in Azure storage blob via Python?

I can't seem to activate Cache-Control max-age in an Azure storage blob in Python via the following code: contentSettings = ContentSettings(cache_control="max-age=86400") containerClient.upload_blob(blobname, theBytes, length=byteCount, overwrite=True, content_settings=contentSettings) In the web based Azure storage browser, it appears max-age is correctly set: However,…

VIEW QUESTION

Azure – How to download all blobfiles with a sas url?

Showing all blobs in a (foreign) container is possible with the code below, so I know the provide SAS-url is valid from azure.storage.blob import ContainerClient, BlobServiceClient sas_url = r'[the sas_token]' container = ContainerClient.from_container_url(sas_url) blob_list = container.list_blobs() for blob in blob_list:…

VIEW QUESTION
Back To Top
Search