In my ASP.NET web.config, I have this:
<urlCompression doDynamicCompression="true" />
I went here to find an answer:
http://www.iis.net/ConfigReference/system.webServer/urlCompression
…but it doesn’t really explain what URL compression is. Can anyone give a bare-bones explanation of this?
In a nutshell:
doDynamicCompressiontells IIS whether it should compress dynamically generated content, i.e. content generated by your scripts (ASP, PHP, ASP.NET etc).doStaticCompressiontells IIS whether to compress static files e.g. PDF’s, JPEGS etc that actually exist on the file system.This answer here then further explains the difference between
urlCompressionandhttpCompression:To control how content (static or dynamic) is compressed you would then specify the
<httpCompression>setting. With this you can control the compression scheme (gzip or deflate), where compressed content is stored, disk space limits for compressed content, CPU limits when compressing content etc. You can also specify more fine grained control over the different content types (mime types) that can be compressed.