Forum Discussion
BMARTIN_12200
Nimbostratus
Feb 17, 2009stream profile - set title browser
Hello, I created a rule to add information to the title field of the browser. His works on the first page of the portal, but when I open another application html from this portal, the title is not...
hoolio
Cirrostratus
Feb 17, 2009Hi Bruno,
Is the STREAM_MATCHED log entry made on any response after the first one? Is it possible that the server is compressing the response data after the first response? If so, you could tell the server to not use compression by removing the Accept-Encoding request header:
when HTTP_REQUEST {
If we're rewriting the response content, prevent the server from using
compression in its response by removing the Accept-Encoding header
from the request. LTM does not decompress response content before
applying the stream filter. Ideally, we'd only remove it if we're
rewriting response content.
if { $::rewrite_response_payload } {
if { [HTTP::header exists "Accept-Encoding"] } {
Remove the Accept-Encoding header from the request
HTTP::header remove "Accept-Encoding"
}
}
}
If you don't know in the request that you'll rewrite the response, then you would have to remove the Accept-Encoding header from all requests.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects