I am trying to create an HTTP handler to handle all requests to a folder, but I want it to work only if the requested files do not exist (EG: Request comes for file X, if there is X, I would like to service the file, otherwise the handler must deal with it).
The files will only be static content, not the scripts themselves, which I believe makes it a bit easier, but I can't find anything that can do the trick ... Does anyone have any ideas? I assume this can be done since the IIS7 rewriter can manage it, but I donโt see how ...
Edit Just to clarify ... the handler is a typical case, and it is not an error handling procedure, but actually provides relevant content. I just want to add new files to the folder either as separate things, or as overloads for what the handler passed.
fyjham
source share