HttpResponse.Filter Fun

Stuff I learned about HttpResponse filters and the ASP.NET pipeline today:

  • Calling Server.Transfer or Response.End will kill the Filter. Anything that calls Response.End() or
  • Server.Execute passes code through the filter just fine
  • PreSendRequestHeaders and PreSendRequestContent don’t seem to fire unless you call HttpResponse.Flush()
  • Fulfilling from the OutputCache causes all the events between AuthorizeRequest and EndRequest to not fire

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.