Forum Discussion
Puli
Nimbostratus
Sep 13, 2010cost of removing a string on every request
Hi All,
have a requirement where i need to scan and remove a string from the response.
When HTTP_RESPONSE {
HTTP::header replace Location [sring map -nocase {"/global" ""} [HTTP::header Location]
}
I need to check every response and remove global string as above, so the url in browser should appear without the string global in it.
Using above code, cant get it to work.
Also
Wanted to find out the impact on performance. We have pretty beefy machine running F5 LTM
Our site gets about 80 hits per second.
Do i need to add a if global exist condition? or does string map does that.
Appreciate your suggestions.
thanks.
Puli.
- JRahm
Admin
yeah, I wouldn't do the replace unless global is present. Turn timing on to check the impact to your rule: - Puli
Nimbostratus
ok thanks.
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