Intercept ARR caching with custom IIS module

Peter Gibbons 21 Reputation points
2022-04-11T12:22:01.117+00:00

We use a custom IIS module to validate certain parameters of a client request. When we activate ARR caching on the same IIS server, the request is handled directly by ARR and not passed to the module, thus our checks are passed without validation. Changing the module order does not change the behavior. Is there a way to intercept ARR caching with a custom IIS module, so the request first gets to be handley by the module and then passed to ARR caching?

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 59,056 Reputation points
    2022-04-11T17:34:48.263+00:00

    there is pipeline ordering, but it controls the order the modules are called for pipeline events. that is if two modules register for the same event handler, the order they are called in. you probably need to support an earlier event.

    https://learn.microsoft.com/en-us/dotnet/api/system.web.httpapplication?redirectedfrom=MSDN&view=netframework-4.8#events


0 additional answers

Sort by: Most helpful