seo site checkup logo
PricingFree ToolsArticles
Log in

HTML Compression/GZIP Test

What is it?

Check if your website is using HTML compression. HTML compression plays an important role in improving website speed by finding similar strings within a text file and replacing them temporarily to reduce overall file size.
Check your URL:

How do I fix it ?

Your two options for file compression are Deflate and GZIP.

  • Deflate is an option which comes automatically with the Apache server and which is simple to set up.
  • GZIP on the other hand needs to be installed and requires a bit more work to install. However, GZIP does achieve a higher compression rate and therefore might be a better choice if your website uses pages which have a lot of images or large file sizes.

Setting up file compression for your website will depend on which type of server you're using for your website. Most likely, you'll be using Apache, which means you can enable compression by adding a few deflate codes to your .htaccess file.

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

For more advanced information regarding deflate you can check this Apache documentation.

Check your website's SEO for free right now!
seo site checkup logo
Website SEO, Monitoring & Automation Made Easy.
Product
  • Pricing
  • Free Tools
  • Articles
  • Login
  • Free 14 Day Trial
© SEO Site Checkup 2009-2021 • All rights reserved