c# - Why is Page_Load() hit twice on long-loading page? -


i have page depending on data bringing can take long time (minutes) load, majority of time spent in method called page_load(). have noticed once time threshold hit, page_load() hit second time. when started watching network tabs in chrome dev tools , firebug didn't see second requests go out, did notice few things:

in firebug temporarily flashes status code of 407 long running request.

in chrome timing tab shows stalled several minutes, proxy negotation right before page_load() hit second time.

what going on here? don't know how proxies , authentication work, sure seems there re-authentication going on in middle of page load causing whole page lifecycle restart.

407 proxy authentication challenge status, means proxy requesting authentication.

depending on authentication scheme (e.g. basic, ntlm, negotiate, digest etc), there subsequent requests made additional authentication information (proxy-authorization header). since these repeat requests may not notice re-request. if there large payloads involved (e.g. large body on post/put) these need sent again well.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -