According to this information given by the Asp.Net team What not to do in Asp.net you should not use PreSendRequestHeaders
in a managed HttpModule.
PreSendRequestHeaders and PreSendRequestContext
Recommendation: Do not use these events with managed modules.
The PreSendRequestHeaders and PreSendRequestContext events can be used with native IIS modules, but not with managed modules that implement IHttpModule. Setting these properties can cause issues with asynchronous requests.
This is precisely what I do in my Image Processing Library to ensure that the correct mime type is sent along with the response.
What would be the recommended alternative approach?