Forum Discussion

Preet_pk's avatar
Preet_pk
Icon for Cirrus rankCirrus
Apr 03, 2022

HTTP Compression & Caching

Hi,

We have multiple web applications running on a single Virtual server with host/domain based pool routing.

For eg:

red.lab.ae

blue.labe.ae

irule:

when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
red.lab.ae {
pool Red_Pool1 }

green.lab.ae {
pool Green_Pool1 }

}
}

Just want to know if i need to apply HTTP compression & caching only for green.lab.ae, how can i apply in irule.