You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Initialise the Properties collection from all the server variables, headers and cookies.
foreach (string key in httpContext.ServerVariables.AllKeys)
{
_properties.Add(key, httpContext.ServerVariables[key]);
}
REMOTE_HOST is a dynamic property that gets calculated only on access. Here UrlRewriter makes a copy of all server variables, triggering DNS requests even if not used anywhere in the app or rewriting rules.
Cheers, Rob
The text was updated successfully, but these errors were encountered:
Hi,
Refer to SO for further context.
I identified this code in RewriteContext as the culprit:
REMOTE_HOST is a dynamic property that gets calculated only on access. Here UrlRewriter makes a copy of all server variables, triggering DNS requests even if not used anywhere in the app or rewriting rules.
Cheers, Rob
The text was updated successfully, but these errors were encountered: