Forum Discussion

Christopher_Boo's avatar
Christopher_Boo
Icon for Cirrostratus rankCirrostratus
Jul 17, 2012

Is it possible to enable gzip compression for only one node in a pool via irule?

Is it possible to enable gzip compression for only one node in a pool via irule?

 

 

Thanks,

 

Chris

2 Replies

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi Chris,

    You can enable compression in the HTTP profile and then use an iRule like this to disable compression for all but the 1.1.1.1 node:

    
    when HTTP_RESPONSE {
    if { not [IP::addr [IP::server_addr] equals 1.1.1.1] }{
    COMPRESS::disable
    }
    }
    

    Aaron