Hi there,
I am using the Standard.Page.NotFound subscriber to return a default image for 404 images. It goes like this (all pseudo code):
var request = GetUrlFrom404Request();
if (!request.Image()) { return; }
context.Response.Clear();
context.Response.BinaryWrite(request.GetImage());
context.ApplicationInstance.CompleteRequest();
This works well and serves up our default image for non-exiting images.
However, we're finding that this solution is really slow. Handling the 404 seems to take at least 3 or 4 seconds.
Is there other stuff going on before our OnNotify runs? Is there a way to tell the 404 handler that I already handled the request? It would be nice to have a IsHandled property on NotFoundArgs that would bypass any other processing when set to true.
Thanks!