Images get corrupted with stream profile
Hi,
I am installing a F5 cluster with https termination. Https to the client, http to the server, and a stream profile (with the well-known irule here-under) to rewrite the http links to https.
The rewriting is done correctly from what I can see in the links on the website. Meanwhile, as soon as I turn the stream profile on, my images are randomly getting corrupted and not displayed. When I remove the stream profile, website appears correctly (but some images and links are in http).
Rule : Stream-Rewrite_HTTP_to_HTTPS_Homol_v01
Description :
- Replace http:// with https:// in response content
- Prevents server compression in responses
- Solve potential issue with cookie persistance SOL7964
when HTTP_REQUEST {
SOL7964 detach the server side after each request
if { [HTTP::cookie names] contains "BIGipServer" } {
LB::detach
}
Disable the stream filter for all requests
STREAM::disable
Prevent the server from sending a compressed response by removing the compression offerings from the client
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace http:// with https://
STREAM::expression {@http://@https://@}
Enable the stream filter for this response only
STREAM::enable
}
}
Anyone has had this issue before or has any idea to help here ?
I have tested without ssl profile (using ) and I have the same issue.
I have tested the same config on 11.5.1 and on 11.6.0.
I have also tested without asm profile and it makes no difference.
Thanks, and happy Christmas and new year to all.
David