Skip to content
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

Closed
hkusulja opened this issue Feb 3, 2021 · 5 comments
Closed

AzureFileCopy - set Content-Encoding #14329

hkusulja opened this issue Feb 3, 2021 · 5 comments

Comments

@hkusulja
Copy link

hkusulja commented Feb 3, 2021

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.

@AmrutaKawade
Copy link
Contributor

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 --content-encoding in the task
image

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

@AmrutaKawade AmrutaKawade added environment:question and removed environment:need-to-triage Issues need to be triage by environment-deployment team labels Mar 19, 2021
@AmrutaKawade
Copy link
Contributor

Closing this issue. Do try above steps. Let me know if it doesn't work

@hkusulja
Copy link
Author

hkusulja commented Apr 19, 2021

@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.
Manually specify and putting is "too much work" , sorry.

Just confirm please that this is by design and should be a new feature request to support auto-setting the content-encoding ?

@AmrutaKawade
Copy link
Contributor

yes its not supported currently please raise feature request here https://github.com/Azure/azure-storage-azcopy/issues

@hkusulja
Copy link
Author

opened - Azure/azure-storage-azcopy#1415

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants