Does Windows Azure Blob Storage support serving compressed files similar to Amazon S3?

前端 未结 2 373
伪装坚强ぢ
伪装坚强ぢ 2021-01-05 08:34

For example, at Amazon S3, there is a convention, if you have both \'bundle.js\' and \'bundle.js.gz\' uploaded to the server, and a client requests for \'bundle.js\' file wi

2条回答
  •  离开以前
    2021-01-05 09:40

    Azure Storage allows you to define Content-Encoding property on a blob. For compressed content, you could set this property to be GZIP and when this content is served by a browser, it automatically decompresses the content and shows the uncompressed content.

    This is a bit different than Amazon S3 though where you actually have to upload 2 files. Here you will only upload one file (bundle.js in your example) which is compressed and has content-encoding set as GZIP.

提交回复
热议问题