-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AzureFileCopy - set Content-Encoding #14329
Comments
Our task internally uses azcopy.exe and automatically setting content-type is feature provided by azcopy https://docs.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy#advanced I am not sure whether content-encoding can be set automatically with this exe. you can pass optional arguments though to set https://docs.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy#options if you want to request feature in azcopy raise request here https://github.com/Azure/azure-storage-azcopy/issues |
Closing this issue. Do try above steps. Let me know if it doesn't work |
@AmrutaKawade - The point is that AzCopy.exe knows automatically to set content-type, the same way it should support and set automatically content-enconding. So you are saying this is a feature request and currently not supported? This is needed for example when DevOps pipeline/build and release/deploy , static web files to azure storage, which is behind CDN, , which needs to know if file is gzip, or brotli etc, and needs to be returned correctly from the origin. Just confirm please that this is by design and should be a new feature request to support auto-setting the content-encoding ? |
yes its not supported currently please raise feature request here https://github.com/Azure/azure-storage-azcopy/issues |
opened - Azure/azure-storage-azcopy#1415 |
I am using latest cloud Azure DevOps - Release - Task Azure File Copy - version 4.*
to copy static files for web page to Azure Storage blob account container.
It also automatically sets correct content-type attribute in azure storage account.
However, attribute content-encoding is not set, and should be set for gzip, .br files
This is needed due to HTTP browser requirements, and CDN only pick-up data from Azure storage account with metadata.
The text was updated successfully, but these errors were encountered: