Last post Jan 27, 2015 12:41 AM by Shawn - MSFT
Jan 24, 2015 11:14 AM|asondf|LINK
Need to know will PostResolveRequestCache event fires on every request, even if the page is not cached? If answer is no then, how will asp.net MVC works on the first request, as UrlRoutingModule will attach to PostResolveRequestCache the event.
Jan 27, 2015 12:41 AM|Shawn - MSFT|LINK
reaching this event means the request can’t be served from the cache, and thus a HTTP handler is created here. A Page class gets created if an aspx page is requested.
Requests to an ASP.NET MVC-based Web application first pass through the
UrlRoutingModule object, which is an HTTP module. This module parses the request and performs route selection. The
UrlRoutingModule object selects the first route object that matches the current request. (A route object is a class that implements
RouteBase, and is typically an instance of the
Route class.) If no routes match, the
UrlRoutingModule object does nothing and lets the request fall back to the regular ASP.NET or IIS request processing.
For more information, you could refer to: