Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is urlCompression in IIS7?

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?

like image 473
oscilatingcretin Avatar asked May 11 '11 20:05

oscilatingcretin


People also ask

What is static compression in IIS?

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 .

What is dynamic content compression IIS?

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.

How do I enable GZip compression in IIS?

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.


1 Answers

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.

like image 91
Kev Avatar answered Oct 12 '22 01:10

Kev