# IIS 7.5 Not Compressing Javascript: NO_MATCHING_CONTENT_TYPE

I have IIS 7.5 set to compress all static files (the default), yet it does not compress .js (javascript) files. When I turn on failed request tracing for compression, the error I get for the compression is:

NO_MATCHING_CONTENT_TYPE

I read about this, and the only solution I saw posted was to make sure application/x-javascript (and not just application/javascript) is specified as a mimetype seen as 'static' content. So I adjusted my applicationHost.config to have this:

<httpCompression>
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" dynamicCompressionLevel="5" />
<scheme name="deflate" dll="%windir%\system32\inetsrv\gzip.dll" />
<staticTypes>