Last post Dec 03, 2010 01:19 PM by JoshRoss
Apr 09, 2010 05:19 PM|EricTyrrell|LINK
I am using a IHttpHandler to write a PDF file to the output stream in IIS 7 with ASP.NET 4 RC as follows.
I am aware that IIS 7 offers both static and dynamic compression which is configured using the urlCompression and httpCompression elements in their respective config files. This works well except for with the output of IHttpHandlers. It seems their output is
not being compressed even though I have enabled dynamic compression and added the IHttpHandler's mime-types (application/pdf in this case) to the dynamicTypes section.
Why are my IHttpHandler's output not being compressed by IIS? I'm aware I could do this manually in the handler but I'd rather let IIS do it.
Apr 12, 2010 03:29 PM|EricTyrrell|LINK
OK let's start out with a simpler question: In general, does IIS 7 compression work with HTTP handlers?
Apr 13, 2010 03:17 PM|EricTyrrell|LINK
I find it hard to believe no one has tried to combine two simple concepts like IIS 7 compression and HTTP Handlers.
Sep 16, 2010 02:14 PM|spongman|LINK
I'm trying to get this to work, also.
Did you ever find out how to get IIS compression to work with HttpHandlers?
IIS compression HttpHandler
Sep 16, 2010 02:28 PM|EricTyrrell|LINK
No I ended up just GZIP compressing in my handler. I'd still like to figure this out though.
Dec 03, 2010 01:19 PM|JoshRoss|LINK
> No I ended up just GZIP compressing in my handler. I'd still like to figure this out though.
How well did that work for you? Would you mind posting a sample of what you did, in code?
IIS HTTP HttpHandler GZIP