I configured gzip compression with Windows Azure CDN, but CDN still gives un-gzipped data:
$ curl -H "Accept-Encoding: gzip" -I https://bbbdev.azureedge.net/images/512.png
HTTP/1.1 200 OK
Content-MD5: GAXAIuQyL8MhCNc+BW1baw==
Content-Type: image/png
Date: Tue, 26 Apr 2016 12:59:45 GMT
Etag: 0x8D363B09C5AB6D6
Last-Modified: Wed, 13 Apr 2016 15:30:57 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
Vary: Origin
x-ms-blob-type: BlockBlob
x-ms-lease-status: unlocked
x-ms-request-id: 60846501-0001-0042-23bb-9f72d0000000
x-ms-version: 2009-09-19
x-ms-write-protection: false
Content-Length: 11028
And I have image/png
and image/jpeg
added as "Formats to compress" - but no luck.
And the fact is - in our origin (Blob Storage) those files not compressed - we just put them in container using self.blob.put_block_blob_from_path()
from Azure SDK.
As I found in a similar topic - if files are not compressed on the origin side - CDN will not gzip them.
So - is there only way to "manually" (via script in fact) gzip them before push
to Storage - or this can be done other way?