Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between httpCompression and urlCompression?

Looking at the node in a Web.config, I see that it allows both httpCompression and urlCompression elements. What's the difference between the two? I just want to do standard gzip, which one should I use?

like image 569
Mike Comstock Avatar asked Jul 14 '10 02:07

Mike Comstock


People also ask

What is IIS compression?

IIS Compression is a bundle of two IIS compression scheme providers, iisbrotli. dll and iiszlib. dll, that expand IIS's capability to compress HTTP responses. iisbrotli. dll supports Brotli compression, while iiszlib.

How do I enable GZip 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.


1 Answers

urlCompression specifies what to compress and httpCompression indicates how to do the compression. If you're running on IIS7.5, you don't need to specify anything, both dynamic and static compression are enabled by default, both use gzip; here are some links on urlCompression and httpCompression.

like image 158
Nariman Avatar answered Sep 19 '22 19:09

Nariman