Question
How to configure compression and caching in Plesk on Windows?
Answer
Dynamic content compression feature is available as a component in Plesk Onyx 17.8:
To enable IIS Dynamic Compression, install this component using Plesk Installer (Plesk Hosting features > Dynamic Content Compression).
For Plesk Onyx 17.5 and below, use the following instructions:
How to manually enable/disable GZip compression
-
Connect to the server via RDP.
-
Install dynamic compression and static compression features:
PS Install-WindowsFeature Web-Dyn-Compression
PS Install-WindowsFeature Web-Stat-Compression
-
Navigate to IIS Manager > Sites > example.com.
-
Open Compression settings:
-
Set the desired values for Enable dynamic content compression and Enable static content compression parameters.
-
Apply changes.
How to manually enable/disable IIS caching
-
Connect to the server via RDP.
-
Navigate to IIS Manager > Sites > example.com.
-
Open Configuration editor:
-
Select system.webServer/caching section:
-
Set the desired values for enabled and enableKernelCache parameters.
-
Apply changes.