Forum Discussion
CIS CRD http compression profile
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.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com