Forum Discussion

10 Replies

  • share your config if you want help... do you use an irule, a local traffic policy??? post here the configuration... (with anonymized IPs and hostnames...)
  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus
    What happens if you enable the developer tools for Chrome, do you see anything in here to suggestion an issue?
  • Hello, VIP name -vs-alfresco Pool name -Alfresco Nodes attached to it- 10.155.53.201:2095 10.155.53.202:2095 Three Irule has been atttached to the VIP below is 1) sorry page if no server are available 2) insert in http header X-forwarder for client Ip address 3)The one for redirection mentioned below which we are facing issue only on chrome-- when HTTP_REQUEST { if {[string tolower [HTTP::uri]] starts_with "/alfresco/faces"}{ HTTP::redirect "http://[HTTP::host]/share" } } Above redirection is working well for IE and Mozilla but not for chrome. Kingly help and suggest Thanks in advance. Regards Kamlesh Y
  • 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_162's avatar
      Hannes_Rapp_162
      Icon for Nacreous rankNacreous
      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_209668's avatar
      kamlyada_209668
      Icon for Nimbostratus rankNimbostratus
      Thanks for your help and i will try the above I-rule and will let u know. Regards Kamlesh Y
  • 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's avatar
      Hannes_Rapp
      Icon for Nimbostratus rankNimbostratus
      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_209668's avatar
      kamlyada_209668
      Icon for Nimbostratus rankNimbostratus
      Thanks for your help and i will try the above I-rule and will let u know. Regards Kamlesh Y