Forum Discussion
The redirection is well working when using Fire Fox & Internet Explorer but not on Chrome
I encountered a similar problem with redirects not being compatible with Chrome in the past while I was still using the
HTTP::redirect function in my iRules. It might be related with your issue, but not sure.
Problem with Chrome is their unique way of optimizing HTTP performance. I've found that any F5 iRule redirects will not work with newer versions of Chrome no more than once per TCP connection, because F5 thinks the redirection was already executed for the incoming connection.
Steps to reproduce:
1) Close any opened Chrome Windows, open a new Chrome Window
2) Go to a URL that should redirect you somewhere (should work as expected)
3) Without closing the opened Chrome Window, open a new tab
4) Go to the same URL as in step 2 that should redirect you somewhere (will not work anymore)
5) The redirect at step 2 will not work until the connection times out, or until user tries to open the page from a new Chrome Window
To mitigate the problem, I started including a "Connection=Close" header with all F5-initiated redirects. For that, you must use HTTP::respond function instead of HTTP::redirect. Therefore, instead of your function
HTTP::redirect "http://[HTTP::host]/share", give a try to HTTP::respond 302 Location "http://[HTTP::host]/share" Connection Close. Let's see if it will help you.- Hannes_Rapp_162Nov 13, 2015
Nacreous
Forgot to add, since you have multiple iRules, you may also suffer from multiple HTTP response/redirect violation - check /var/log/ltm to confirm. After each use of HTTP redirect or response function, use the 'event disable' function to make sure other iRules will not override an action. You can check more about the multiple redirect/response invocation issue here: https://devcentral.f5.com/questions?pid=42824answer128487 - kamlyada_209668Nov 16, 2015
Nimbostratus
Thanks for your help and i will try the above I-rule and will let u know. Regards Kamlesh Y
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