Forum Discussion
Jad_Tabbara__J1
Aug 16, 2017Cirrostratus
Hello Mandragor,
Based on this article https://support.f5.com/csp/article/K15434
You have two options :
-
you want to manage the compression from an irule ---> then you must "check" the option "Selective Compression" from your HTTP Compression profile.
-
you want to manage it directly from the profile ---> then you keep the "Selective Compression" as it is (by default unchecked)
If you go with first option try this irule :
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/app1/" } {
COMPRESS::enable
} elseif { [string tolower [HTTP::path]] starts_with "/app2/" } {
}
}
Hope it helps
Regards