2

What aspects of http compression can be specified in the web config.

I have gotten dynamic compression working via changes to the applicationHost file for iis, but I'd like to configure as much as possible inside the application's web config.

I have been unsuccesfull to do this outside of the applicationHost file.

TrevDev
  • 1,106
  • 11
  • 24

1 Answers1

3

Compression for dynamic and static content can be enabled or disabled per website, but the technical parameters like the minimal file size (before a file is compressed), the location of the directory where compressed files are cached and the size of the compression cache per application pool can only configured on the server level (hence in applicationHost.config).

Marco Miltenburg
  • 6,123
  • 1
  • 29
  • 29
  • Is this verified? I enabled everything in my app host, verified it was working, then I removed the mime type I was looking for, then tried setting this in the web config with no success. – TrevDev May 30 '12 at 23:26
  • 1
    That's what I said, you can only enable it or disable it, you can't change the parameters. So speaking config files, you can only override but not . Even when I set
    it still won't allow me to make any overrides or to add any mime types from web.config. Although I can't find any documentation from Microsoft that clearly states this. It's from my own experience and testing. PS: I had to restart IIS to let it pick up changes to applicationHost.config.
    – Marco Miltenburg May 31 '12 at 11:52