I am trying to get IIS 7.5 compression to work. It sounds so simple for all blogs, but it doesn't work for me. If that matters, I am using asp.net mvc. I am testing this locally and I am using IIS 7.5 and not cassini. I have read and tried every article I can find. I made sure that static and dynamic compression modules are installed. I tried several articles like this that talk about customization using appcmd. I tried several articles like thisthat configure the parameters in the web.config file. I checked the mime types as described in the articles where js files worked sometimes (I cannot post a link because I am a new user and limited to 2 links). I created action filters for mvc, as discussed on many blogs (again, I cannot post links)
None of the methods compress anything. No css, no js, ββno pages ... nothing. I can even go through the code, I see that the action filter works, I even see that it works with the next two lines, and yet the violinist does not show compression.
response.AppendHeader("Content-encoding", "gzip");
response.Filter = new GZipStream(response.Filter, CompressionMode.Compress);
I have to have a huge brain fart and miss something really stupid, but I can't figure it out.
Does IIS compression work locally when run? Is IIS compression working with MVC due to routing or something else?
Any suggestions / tests / information?