locked
Azure CDN with Standard Verizon doesn't use gzip RRS feed

  • Question

  • Hi,

    I'm using Azure CDN with Standard Verizon, and gzip doesn't work.

    The "Optimization type" is set to "General web delivery", and compression is enabled (I didn't changed the defaults, so Javascript, the file I want to use gzip is in that list). The respond header is:

    HTTP/1.1 200 OK
    Accept-Ranges: bytes
    Content-Type: text/plain
    Date: Fri, 19 Jan 2018 12:16:47 GMT
    Etag: 0x8D55E80C1AFEA9D
    Last-Modified: Thu, 18 Jan 2018 14:35:44 GMT
    Server: ECAcc (toj/8940)
    X-Cache: HIT
    x-ms-blob-type: BlockBlob
    x-ms-lease-status: unlocked
    x-ms-request-id: b08ee897-001e-0045-441f-91d55b000000
    x-ms-version: 2009-09-19
    Content-Length: 1737670

    And the file does weight a lot more, so it's not using gzip.

    Am I missing something? Why does that happen?

    Thanks

    Friday, January 19, 2018 1:02 PM

Answers

  • I followed the troubleshooting guide and found that your file is too large.

    It must be:

    Larger than 128 bytes.

    • Smaller than 1 MB.
    https://docs.microsoft.com/en-us/azure/cdn/cdn-troubleshoot-compression 
    • Marked as answer by NexUser Monday, January 22, 2018 10:39 AM
    Friday, January 19, 2018 9:33 PM

All replies

  • I followed the troubleshooting guide and found that your file is too large.

    It must be:

    Larger than 128 bytes.

    • Smaller than 1 MB.
    https://docs.microsoft.com/en-us/azure/cdn/cdn-troubleshoot-compression 
    • Marked as answer by NexUser Monday, January 22, 2018 10:39 AM
    Friday, January 19, 2018 9:33 PM
  • Hi Richard,

    Thanks, you are right. The limit of 1MB is really low. In these cases gzip needs to be enabled in the origin. For example if Azure Storage (BLOB) is used as the orign, a tool like https://github.com/stefangordon/azure-storage-gzip-encoding can be used to automate the procces.

    This is solved now

    Thanks

    Monday, January 22, 2018 10:39 AM