# CIS CRD http compression profile

**URL:** <https://community.f5.com/t/cis-crd-http-compression-profile/74995>\
**Category:** Technical Forums\
**Tags:** cis\
**Created:** [August 16, 2024, 7:47pm UTC](https://community.f5.com/t/cis-crd-http-compression-profile/74995 "2024-08-16T19:47:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alp](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@alp](https://community.f5.com/u/alp)\
**Post date:** [August 16, 2024, 7:47pm UTC](https://community.f5.com/t/cis-crd-http-compression-profile/74995/1 "2024-08-16T19:47:55Z")

</div>

Hi all,

I am trying to add http compression profile to my virtual server with cis CRD. So far, I came across with two solutions.

**ConfigMap:** However, in my scenario, I need to use only CRD.

**iRule:** I attempted to create two iRules to mimic the functionality of the httpcompression and wan-optimized-compression profiles. However, I’m uncertain if they fully replicate the intended functionality. Below are the iRules I created:

httpcompression

when HTTP\_RESPONSE {

COMPRESS::disable

if { [HTTP::header “Content-Length”] \>= 1024 && ( [HTTP::header “Content-Type”] starts\_with “text/” || [HTTP::header “Content-Type”] starts\_with “application/xml” || [HTTP::header “Content-Type”] starts\_with “application/x-javascript” ) } {

COMPRESS::gzip memory\_level 8

COMPRESS::gzip window\_size 16

COMPRESS::gzip level 1

COMPRESS::buffer\_size 4096

COMPRESS::enable

}

}

wan-optimized-compression

when HTTP\_RESPONSE {

COMPRESS::disable

if { [HTTP::header “Content-Length”] \>= 1024 && ( [HTTP::header “Content-Type”] starts\_with “text/” || [HTTP::header “Content-Type”] starts\_with “application/xml” || [HTTP::header “Content-Type”] starts\_with “application/x-javascript” ) } {

COMPRESS::gzip memory\_level 16

COMPRESS::gzip window\_size 64

COMPRESS::gzip level 1

COMPRESS::buffer\_size 131072

COMPRESS::enable

}

}

Do you have any suggestions for further improvements? Also, where can I submit a feature request to add HTTP compression profile support to the CRD?

Thank you in advance for your assistance.
