Forum Discussion

Ozzy's avatar
Ozzy
Icon for Cirrus rankCirrus
Apr 04, 2025

Compression does not work

hello ,

I create compression profiles with these content . and add this profile my standart + http profile .. But both does not make any content compression. What  I am missing ?

 

 

2 Replies

  • Hi Ozzy,

     

    Can you do a browser test to the VIP and use developer tools in the browser and look for the "Content-Encoding" header in the HTTP response?  You should see that header along with a value of gzip/deflate/ etc.  You can also use a curl statement to test/verify as well:  

     

    curl -I -H "Accept-Encoding: gzip, deflate, br" https://yourwebsite.com

     

    Additionally, you can try to compare file sizes of the content your are trying to access by using adjusting the "Accept-Encoding" headers:  some examples below:

     

    With compression: curl -H "Accept-Encoding: gzip" https://yourwebsite.com > compressed.html

     

    Without compression: curl -H "Accept-Encoding: empty" https://yourwebsite.com > uncompressed.html

     

    Compare file sizes using 

     

    The backend web server also need to support this, if its  Nginx - check for gzip on   if its Apache - mod_deflate,  

     

    • Ozzy's avatar
      Ozzy
      Icon for Cirrus rankCirrus

      I can not see any encoding header with 

      curl -I -H "Accept-Encoding: gzip, deflate,br" https://wiki-test.company.com
      HTTP/1.1 404 Not Found
      Date: Fri, 04 Apr 2025 14:45:39 GMT
      Server: BigIP
      Content-Length: 3186
      Connection: close
      Content-Type: text/html; charset=utf-8
      X-Frame-Options: DENY


      04/04/2025  16:48                 0 compressed.html
      04/04/2025  16:48                 0 uncompressed.html
                     2 File(s)              0 bytes
                     0 Dir(s)  194,474,168,320 bytes free

       

      should I undertand , backend server does not support compression ?