We have an Azure CDN pointed at blob storage container. We upload on a regular basis new files via AZ Copy.
I can set it in many ways such as https://learn.microsoft.com/nb-no/azure/cdn/cdn-manage-expiration-of-blob-content but not in bulk.
Is it possible to set the Cache-Control property/meta data via AzCopy?
Setting the Cache-Control property is supported in azcopy as of May 2019 https://github.com/Azure/azure-storage-azcopy/releases/tag/v10.1.2
Here's the corresponding release information from the link above:
New features
- Headers for Content-Disposition, Content-Language and Cache-Control can now be set when uploading files to Blob Storage and to Azure Files. Run
azcopy copy --help
to see command line parameter information, including those needed to set the new headers.