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?
Specifies the directory where compressed versions of static files are temporarily stored and cached. Note: In IIS 6.0, the default directory path for IIS temporary compressed files was %windir%\IIS Temporary Compressed Files. The default value is %SystemDrive%\inetpub\temp\IIS Temporary Compressed Files .
Dynamic compression is a feature that allows the IIS web-server to compress responses coming from such handlers as the ASP.net Managed Handler, ISAPI Extensions or CGI handlers that dynamically generate responses for requests they handle.
GZip Compression can be enabled directly through IIS. So we go to the “Turn Windows features on or off” and select “Dynamic Content Compression” and click the OK button. Now if we go back to IIS, we should see that the compression page has changed.
In a nutshell:
doDynamicCompression
tells IIS whether it should compress dynamically generated content, i.e. content generated by your scripts (ASP, PHP, ASP.NET etc).
doStaticCompression
tells 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 urlCompression
and httpCompression
:
What is the difference between httpCompression and urlCompression?
"urlCompression specifies what to compress and httpCompression indicates how to do the compression."
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With