I have an ASP.NET 3.5 website running on IIS 7, and I would like to have static content (e.g. css files, javascript files, etc.), gzip compressed, as well as my dynamic content (.net- pages). The problem is that I need to make sure that the FLV files (flash video files) are not compressed by gzip, because it causes problems with the used flash video player, Flowplayer .
I added the following line to my web.config, which allows compression, but then my FLV files are also gzip compressed:
<urlCompression doStaticCompression="true" doDynamicCompression="true" />
I tried adding the following to my web.config but didn't change anything:
<httpCompression> <staticTypes> <remove mimeType="video/x-flv"/> </staticTypes> <dynamicTypes> <remove mimeType="video/x-flv"/> </dynamicTypes> </httpCompression>
I need to disable doDynamicCompression for flv files that will not be compressed by gzip. I believe that it treats FLV files as dynamic content, because I have runAllManagedModulesForAllRequests = "true" in my web.config (which I need for some of the things I do with routing).
In general, how to disable gzip compression for FLV files?
source share