I am creating a web server and trying to verify something. The server runs on localhost:888 , and the first time the web application is launched, everything works. But if I try to reload the page, the failure of XmlHttpRequest fails. By setting breakpoints in the server code, I can verify that requests never appear.
This is not a connection failure, since the connection is successful for the first time. The fact that it succeeds once and then fails later means that it may be related to caching, but nothing exists in the server code that sets the cache-control header. So I tested it by putting the server on the actual web server. For the first time, it was all time to plunge; the second time everything loads instantly, so this is definitely related to the cache
This is a configurable server running on top of http.sys (without IIS), and it seems that everything is cached by default and then does not load from it on subsequent launches, but only when my server is running on a local host; on the Internet, it works fine. As far as I can tell, net::ERR_FAILED is the general message “something went wrong and we don’t have any useful information for you” in Chrome, so I’m kind of stuck here. Does anyone know what could be causing this?
source share