Forum Discussion
David_Jones_227
Nimbostratus
Feb 20, 2017Enable or disable chunking based on URI
We have a website with two different applications on it. For example, and .
Due to some older code that the app-a application is running, they are forced to used Compatibility Mode within IE t...
Max_Q_factor
Cirrocumulus
Mar 01, 2017I think the answer may be to set the Virtual Server to use HTTP 1.0 (in the HTTP profile) and trigger re-chunking on the application URL that requires re-chunking, using a modified iRule like:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/app-a" } {
set app a
HTTP::version "1.1"
}
}
when HTTP_RESPONSE {
if {$app == a} {
HTTP::version "1.0"
if {[HTTP::header exists "Transfer-Encoding"]} {
HTTP::payload unchunk
HTTP::header remove "Transfer-Encoding"
}
}
}
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