I have and HTTP module that cleans, compresses and minifies CSS, JS, and HTML files based on their content type header. It works great in my staging environment and localhost (ISS7, classic pipeline mode). On IIS 6 (production), it is not reliable. Sporadically, this static files stop being processed by asp.net and appear to be reverting to the default IIS handler. If I touch the web.config or do an IISRESET it will start working correctly again, for a time. Even when the module gets into this "wacky state", .aspx files are still running through the module as expected. So, I am fairly certain that the module is not the issue, and that what we are looking at is an IIS problem.
- I have HTML, JS and CSS files mapped in IIS 6 to be processed by aspnet_isapi.dll for all verbs.
- In my web.config, I have set these static files to be handled by System.Web.StaticFileHandler in the handlers section also for all verbs.
- The HTTP Module is wired up in the web.config as well.
Any ideas? I'd like to avoid upgrading my production web server to IIS 7 for the time being!