What are some unintended consequences associated with mapping an ASP.NET HTTP Handler to a static extension like *.css?
<add verb="*" path="handler.css" type="Web.HttpHandler.ThemeCssHandler" />
By default, *.css is registered as static content in applicationHost (under IIS7):
<staticContent lockAttributes="isDocFooterFileName">
<mimeMap fileExtension=".css" mimeType="text/css" />
Aren't static requests normally handled more efficiently by IIS alone?
The key motivation is really to have dynamic CSS served under its known extension as opposed to something like *.axd (for simplicity and compatibility with OOTB cache policies); but we'd like to make sure this doesn't degrade the service of non-dynamic CSS requests.