I am facing a similar issue with kronos. I have two VIPs listening on HTTP & HTTPS. The HTTP has a simple https redirect to the main page, and the HTTPS VIP with a streaming profile has the following iRule:
when HTTP_REQUEST {
tell server not to compress response
HTTP::header remove Accept-Encoding
disable STREAM for request flow
STREAM::disable
}
when HTTP_RESPONSE {
catch and replace redirect headers
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map {"http://" "https://"} [HTTP::header Location]]
}
only look at text data
if { [HTTP::header Content-Type] contains "text" } {
create a STREAM expression to replace any http:// with https://
STREAM::expression {@http://@https://@}
enable STREAM
STREAM::enable
}
}
There's a run report instance that throws an undefined javascript error when accessing the web-app on the F5.