Forum Discussion
Adminet_1714
Nimbostratus
Apr 23, 2009Modifying the content of an HTML page when it's compressed
Hello dear forum.
I would like to modify the content of an HTML page (to replace a string by another one).
I've found an irule for this here :
http://devcentral.f5...
James_Quinby_46
Apr 23, 2009Historic F5 Account
Is there any way to disable compression in the web server, via configuration? You could try that first, then let your LTM do compression.
Another way is to fool your webserver into *not* compressing content by stripping out the Accept-Encoding headers sent by the client with an iRule. Your server would send back uncompressed text, which you'd be free to manipulate (and then compress in hardware). You could do that in a rule as simple as this:
when HTTP_REQUEST {
if { [HTTP::header exists "Accept-Encoding"] } {
HTTP::header remove "Accept-Encoding"
}
}
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