Will server redirection (HttpResponse.Redirect) return to load balancing?

The web server is located behind the load balancer. I am doing HttpResponse.Redirect ("another page"). Will this redirection go through load balancing again? I am confused as this is server redirection, not client redirection.

I want to know this to determine if the redirected URL will be served by another web server, as determined by the load balancer.

+4
source share
2 answers

HttpResponse.Redirect is not a server-side redirect. Setting this in the response stream actually sends the "302 Moved Temporary" response to the browser, telling it to try another URL ("anotherroute").

+5
source

If you do not want this behavior, you can use Server.Transfer (url); There is a good explanation here: http://www.developer.com/net/asp/article.php/3299641/ServerTransfer-Vs-ResponseRedirect.htm

+1
source

Source: https://habr.com/ru/post/1434053/


All Articles