We can enable GZIP compression entirely in your
Web.config
. Why do we need GZIP compression ?
Minimize the total size the browser needs to download which would increase performance
Advantages of specifying in web.config
- If we are on shared hosting and can't configure IIS directly
- want our config to carry between all environments we target.
<system.webServer> <!--Enable Gzip --> <urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="false" /> </system.webServer>
No comments:
Post a Comment