Forum Discussion
Rewriting Javascript w/o APM
Thanks for the quick response, Kevin.
I do have a child stream profile assigned w/ default source & target assigned to the VS. And the iRule is exactly as you described:
when HTTP_REQUEST {
HTTP::header remove Accept-Encoding
STREAM::disable
}
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] contains "text" } {
STREAM::expression {@realserver@virtualserver@}
STREAM::enable
}
}
I even used the STREAM_MATCHED event to ensure it executed, which it does.
The other attempt was using a rewrite profile (parent of rewrite-uri-translation) to have client "https://virtualserver/kcontent/" and server "https://realserver/kcontent". This works for the initial launch of the selected user manual (iframes & javascript), but subsequent links from the TOC (iframe) fail to generate content into the secondary iframe.
I want to avoid having to edit this profile every time the content creators add new user manuals to the site.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
