Tuesday, August 15, 2017

Dynamic Compression for the IIS to improve Sitecore performance.

For improving the site performance and page load time – This can be planned.

Sitecore 8.1 , IIS v10



Steps:-

Add Entry



 Enable these setting – apply and restart the IIS

Plan to request vis Accept-Encoding header

If this will not work try to add below configuration in web.config


  directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
    name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
   
      mimeType="text/*" enabled="true"/>
      mimeType="message/*" enabled="true"/>
      mimeType="application/javascript" enabled="true"/>
      mimeType="*/*" enabled="false"/>
   
   
      mimeType="text/*" enabled="true"/>
      mimeType="message/*" enabled="true"/>
      mimeType="application/javascript" enabled="true"/>
      mimeType="*/*" enabled="false"/>
   
 
  doStaticCompression="true" doDynamicCompression="true"/>



Testing: -

For verification/testing. We can use developer tools from the chrome and firefox.
Need to add HTTP response header to Content-Encoding: gzip

Ref:-
https://stackoverflow.com/questions/17321131/compression-filter-for-web-api/17331627#17331627
https://forums.iis.net/t/1233689.aspx

No comments:

Post a Comment