locked
PostResolveRequestCache event attached in UrlRoutingModule RRS feed

  • Question

  • User-1829900872 posted

    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.

    Saturday, January 24, 2015 11:14 AM

Answers

  • User-1818759697 posted

    Hi,

    About PostResolveRequestCache, 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:

    https://msdn.microsoft.com/en-us/library/dd381612(v=vs.98).aspx

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 27, 2015 12:41 AM