Forum Discussion
Igor_Morgado_38
Feb 03, 2011Nimbostratus
Right,
As you told, stream is applied *before* the decompression. But on iRules will I got the payload uncompressed?
If so I can let the compress working as is, and do the irule.
Something like: (shamelessly coppied from devcentral wiki üòâ
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Remove Body onload attribute
STREAM::expression "@onload=\"onLoadBody()\"@@"
Enable the stream filter for this response only
STREAM::enable
}
}
That is it?