views:

321

answers:

2

I'm trying to set dynamic compression in IIS 7 and I know I want to enable compression for these file types (along with others): asmx and asjx. However IIS 7 wants their mime type not the extension. Does anyone know where I can find out what the mime-type is? The best I found is text/plain but I highly doubt that's correct.

A: 

You can look here for a list of all available MIME Types. Not sure if it's exactly what you're looking for, but I hope it helps.

Mike Trpcic
A: 

Hi royrules22. The best way to find this out is to view the pages in a browser, and see what it reports the MIME type as. For example, in Firefox you could use the Live HTTP Headers extension, and look for the "Content-Type" header.

Note that if the MIME type does turn out to be something generic like "text/plain", you could end up enabling compression for more than just your *.asmx and *.asjx pages.

EDIT: if you are talking about the result of a SOAP call, and not the "friendly" ASMX page that ASP.NET returns to the browser, then the MIME type will probably be "application/soap+xml".

Matt Solnit
Thanks! That helps!
royrules22