Your Hosting is Our Responsibility
Client Area
✦ SKPHOST HELP CENTER

How to Enable GZIP Compression in cPanel

cPanel Tutorials

How to Enable GZIP Compression in cPanel?


GZIP compression reduces the size of files sent from your server to the visitor's browser, resulting in faster page load times and reduced bandwidth usage. It can typically reduce HTML, CSS, and JavaScript file sizes by 60–80%.

Method 1: Enable via cPanel Optimize Website

  1. Login to cPanel.
  2. Under Software, click Optimize Website.
  3. Select Compress All Content to enable GZIP for all file types.
  4. Or select Compress the specified MIME types to choose specific file types.
  5. Click Update Settings.

Method 2: Enable via .htaccess

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/xml
  AddOutputFilterByType DEFLATE text/css text/javascript
  AddOutputFilterByType DEFLATE application/javascript application/x-javascript
  AddOutputFilterByType DEFLATE application/json application/xml
</IfModule>

Testing GZIP Compression

After enabling, verify GZIP is working using free tools:

  • GiftOfSpeed GZIP Test
  • Google PageSpeed Insights (checks compression as part of performance audit)

Tip: GZIP compression works best on text-based files. Images (JPG, PNG) and already-compressed files (ZIP, PDF) do not benefit significantly from GZIP and can sometimes increase in size if compressed again.

If you continue to face issues, please open a create a request.

Expert Support

Helpful support whenever you need assistance.

→

Reliable Infrastructure

Infrastructure engineered for stability and performance.

→

Fast Deployment

Get supported services provisioned quickly and efficiently.

→

Secure & Reliable

Security-focused hosting with backup options for supported services.

→