Add web.config static content settings for custom httphandler?

I believe that staticContent only affects the StaticFileHandler which ships with IIS. IIS have no way of knowing that your handler serves static files, so you would need to add those headers your self in your handler, but you might want to make it configurable from your web. Config with it's own section for future changes.

I have a custom httphandler that serves static files from a virtual file system. If I configure the static content section like below I would like these settings to apply to the static files I serve via the handler. I guess I need to add the settings to the response my self or is there another way?

My handler implements the IHttpHandler interface.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions