Skip to content

Website & Server Help

Unlimited Webspace Help

Menu
  • Home
  • Apps
  • Website
    • Sending email from a WordPress website hosted on an IONOS server
    • How to increase Upload Max Filesize
    • How to reset a WordPress password
    • 22 Ways To Speed-Up A Plesk Website
  • Server
    • Linux or Plesk Server Error 500
    • Windows Server: File cannot be loaded. The file is not digitally signed.
    • Adding or modifying IP addresses on a Linux server
    • Installing Remote Desktop on Debian 12
    • Installing Remote Desktop on Ubuntu 22.04
    • How To Install a Let’s Encrypt SSL in Apache on Debian/Ubuntu
  • Favs
    • How to Connect to a Server
    • The Ultimate Guide to Setting Up a Proper Plesk Email Server With IONOS
    • The Ultimate IONOS Migration Guide
    • Help! My Plesk Websites Are Down!
    • Running tests for a slow server or dropped packets
    • Checking File System and Hard Drive Health
Menu

Improving website speed on Windows Server 2019 IIS

Posted on February 1, 2023 by admin

Here are some ways to make websites hosted on Windows Server 2019 IIS run faster.

Optimize website code

Ensure that the website code is optimized and free of errors, which can slow down the website. Use tools such as performance profilers, code analyzers, and minifiers to improve code performance.

Use caching

Caching can significantly improve website performance by reducing the amount of data that needs to be transmitted between the server and the client. Configure caching in IIS using the Output Cache feature.

To configure caching in IIS using the Output Cache feature, you need to perform the following steps:

  1. Open IIS Manager: To open IIS Manager, click on the Windows button, type “inetmgr” in the search bar, and press Enter.
  2. Select the website: In IIS Manager, expand the tree on the left-hand side and select the website for which you want to configure caching.
  3. Open the Output Cache feature: Right-click on the website and select “Features View.” Then, click on “Output Cache” in the middle pane.
  4. Add an output cache rule: In the Output Cache feature, click on the “Add” button in the right-hand pane. Enter a name for the rule and select the type of content that you want to cache (such as “All Content”). You can also set the cache duration for the content, which determines how long the cached content will be used before it is refreshed.
  5. Save changes: Click on the “OK” button to save the changes and enable caching for the website.

Once you have configured caching in IIS, it will store frequently-requested content in memory, so that it can be served directly from the cache instead of being generated by the server each time it is requested. This can improve website performance by reducing the load on the server and improving page load times for the client.

Compress content

Compressing content can reduce the amount of data transmitted over the network, which can improve website performance. Configure compression in IIS using the Static and Dynamic Content Compression features.

To configure compression in IIS using the Static and Dynamic Content Compression features, you need to perform the following steps:

  1. Open IIS Manager: To open IIS Manager, click on the Windows button, type “inetmgr” in the search bar, and press Enter.
  2. Select the website: In IIS Manager, expand the tree on the left-hand side and select the website for which you want to configure compression.
  3. Open the Compression feature: Right-click on the website and select “Features View.” Then, click on “Compression” in the middle pane.
  4. Enable Static Content Compression: In the Compression feature, select the “Static Content Compression” option in the right-hand pane, and then click on the “Enable” button. This will compress all static content, such as HTML, CSS, and JavaScript files, when it is sent from the server to the client.
  5. Enable Dynamic Content Compression: In the Compression feature, select the “Dynamic Content Compression” option in the right-hand pane, and then click on the “Enable” button. This will compress dynamic content, such as the output of PHP or ASP.NET scripts, when it is sent from the server to the client.
  6. Save changes: Click on the “Apply” button in the right-hand pane to save the changes and enable compression for the website.

Once you have configured compression in IIS, it will reduce the size of the data that is sent from the server to the client, which can improve website performance by reducing page load times and bandwidth usage.

Use content delivery networks (CDNs)

CDNs can help distribute content closer to the end-user, which can reduce latency and improve website performance.

Minimize HTTP requests

Each HTTP request requires a round-trip between the server and the client, which can slow down the website. Minimize the number of HTTP requests by using techniques such as combining files, using sprites, and leveraging browser caching.

Enable Keep-Alive

Keep-Alive allows multiple HTTP requests to be sent over a single connection, which can improve website performance by reducing latency. Enable Keep-Alive in IIS using the HTTP Keep-Alive feature.

To enable Keep-Alive in IIS using the HTTP Keep-Alive feature, you need to perform the following steps:

  1. Open IIS Manager: To open IIS Manager, click on the Windows button, type “inetmgr” in the search bar, and press Enter.
  2. Select the website: In IIS Manager, expand the tree on the left-hand side and select the website for which you want to enable Keep-Alive.
  3. Open the HTTP Response Headers feature: Right-click on the website and select “Features View.” Then, click on “HTTP Response Headers” in the middle pane.
  4. Add the Keep-Alive header: In the HTTP Response Headers feature, click on the “Add” button in the right-hand pane. In the “Name” field, enter “Connection,” and in the “Value” field, enter “keep-alive.”
  5. Save changes: Click on the “OK” button to save the changes and enable Keep-Alive for the website.

Once you have enabled Keep-Alive in IIS, it will allow multiple HTTP requests to be sent over a single connection, which can improve website performance by reducing latency.

Upgrade hardware

Upgrading hardware such as adding more memory, disk space, or a faster CPU can improve website performance.

Special Offer

The internet's fastest, cheapest, unlimited bandwidth VPS

VPS
1core | 1GB RAM | 10GB NVMe
Unlimited Bandwidth | 1Gbps
$2/month - risk free