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 automatically Content-Encoding #1415

Open
hkusulja opened this issue Apr 19, 2021 · 1 comment
Open

AzureFileCopy - set automatically Content-Encoding #1415

hkusulja opened this issue Apr 19, 2021 · 1 comment

Comments

@hkusulja
Copy link

hkusulja commented Apr 19, 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,or brotli / .br files etc.

This is needed due to HTTP browser requirements, and CDN only pick-up data from Azure storage account with metadata.

Anyhow, like you support automatically setting the content-type, i suggest for azcopy.exe to support auto setting the content-encoding attribute.

@Delapouite
Copy link

gzip files can be inferred by checking their magic number as described here : https://stackoverflow.com/questions/6059302/how-to-check-if-a-file-is-gzip-compressed

Unfortunately it does not seem feasible for other compression scheme, such as brotli https://stackoverflow.com/questions/6059302/how-to-check-if-a-file-is-gzip-compressed - There's an issue opened about this topic : google/brotli#867

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