when HTTP_REQUEST {
# Disable the stream filter for client requests
STREAM::disable
HTTP::header remove Accept-Encoding
}
when HTTP_RESPONSE {
# Disable the stream filter for server responses
STREAM::disable
# Enable the stream filter for text responses only
if {([HTTP::status] == 200)} {
# Replace 'example.com' with 'app.example.com'
STREAM::expression {@example.com@app.example.com@}
# Enable the stream filter
STREAM::enable
}
}