How to enable compression in Windows


If you are using a Window hosting service for your website then this information is very much important. And today nobody wants their websites to load slow. And if your website is loading slow then it will also affect your search positions on search engines. So here in this article, we want to give you the information on how to enable compression on your website so that your website will load fast.

This document is applicable for Windows Shared Hosting, Windows Unlimited Hosting, Windows VPS or dedicated hosting customers.


It is very much recommended by Google or others also to pay more attention to faster loading of website. There are so many things can be done in Windows web hosting, either shared or Windows VPS hosting, But compression of the web pages are most important and gives quick results.


To configure compression by modifying a web.config file.


Compression is already enabled for domains in IIS by default (after installation of static/dynamic compression feature). If it is not enabled additionally enable GZIP compression entirely in the Web.config file like below-


<?xml version="1.0" encoding="UTF-8"?>

parameters

<configuration>

<system.webServer>

<urlCompression doStaticCompression="true" doDynamicCompression="true" />

</system.webServer>

</configuration>


For caching put the following in <system.webServer> section of Web.config file:


<caching enabled="true" enableKernelCache="true" />


Also, it is possible to enable it in IIS:


STEP 1:


1. Go to IIS > %Server_name% > Sites > %domain_name%

2. In IIS section double click on Compression or Output Caching.


STEP 2:


1. Go to IIS > %Server_name% > Sites > %domain_name%

2. Go to Management division double click on Configuration Editor

3. In Section drop-down menu expand the system.webServer and choose either Caching or urlCompression.

4. Modify the parameters and click Apply


Windows operating system is one the most like and also used the operating system in the world. And today if you want to host your website in Windows hosting then here at HostingRaja we provide best Windows hosting option at an affordable price with amazing features. With our Windows hosting, we provide ASP.NET, a free web framework where you can easily work on building Web sites and Web applications using HTML, CSS, and JavaScript. Not only that we also provide 55% off on Windows Hosting.