When inspecting incoming requests in e.g. a PreRequest event handler in Global.asax.cs, I see that HttpContext.Current.Timestamp
for a request is sometimes earlier than a previous request. Why is that?
It also looks like the order is random in my experiments, meaning that sometimes one request comes before another, and sometimes the other way around.
The documentation for HttpContext.Timestamp
says "The timestamp returned from the Timestamp property is the local time of the server and is set during the instantiation of the HttpContext object." And, HttpContext.Current
is "the context for the current request".
If HttpContext
is created by ASP.NET, and HttpContext.Timestamp
is the time of creation, why aren't I seeing the requests in a strict chronological order? What am I missing?
My application is using ASP.NET MVC 5 (with sessions). The requests are a mix of Razor views, server-rendered images and scripts and AJAX calls for data.