ClickCease
Enable GZIP for a faster website

logo

  • Contact
  • Services
    • Website Design
    • PPC Management
    • Facebook Ad Management
    • Online Reputation Management
    • Google My Business Optimization
    • Email Marketing
    • Social Media Marketing
    • Search Engine Optimization Services
  • Blog
  • About
  • 📱(631) 406-9322
Enable GZIP for a faster website
Home / Blog / Enable GZIP for a faster website

Enable GZIP for a faster website

November 26, 2017 Blog by all-things-digital
Enable GZIP for a faster website

I was reviewing a client’s website tonight, and I wanted to take a peek at how it was performing speed-wise. Now this site was developed on my own server, and then I migrated the WordPress site to my clients hosting package. So I had the site running in Tip-Top shape and it was very quickly loading on my server package, but it did not seem to be performing as well on my clients server. So I started to investigate, and I noticed that the site was not being properly compressed by my clients host.

The tool I used to determine that the clients hosting was not configured the same as mine, was a site called http://checkgzipcompression.com. By utilizing this site, you will instantly find out whether your site is gzip compressed or not. When I moved the site from my host to his hosts they did not have the proper compression module enabled. Now, I will try not to get too technical here, but basically the site was not performing as fast as it was on my hosting package.

DO YOU NEED A NEW WEBSITE OR DOES YOUR WEBSITE JUST NEED AN UPDATE? USE OUR FREE WEBSITE OPTIMIZATION CHECKLIST TO FIND OUT!
👉 CLICK HERE TO GET IT NOW! 👈

One thing that you can do to very quickly speed up your website is to enable gzip. This process can be a very simple one and can cause dramatic increases in your site’s speed. In the case of my client, the website was 79.5% lighter, which means the page has to load less than a quarter the amount of data per page that it had to without the simple gzip enabled! That is huge!

So, here are the steps you need to test your website!

Step 1: Visit http://checkgzipcompression.com

Step 2: Enter your website url and hit enter to start the test

Step 3: Now you will quickly see whether or not GZIP is enabled. If it says you are blessed, GZIP is enabled! Then your site should be loading pretty quickly. If it gives a sad face, and says your compression is not enabled, then you too should have that same sad face. LOL

Step 4: Visit the root folder of your website on your hosting package and find the .htaccess file. (you may need to enable “show hidden files” checkbox in your file manager. You also may need to create one if there isn’t one already.

Step5: Download a copy of your original .htaccess file for a backup, or simply back it up on your server.

Step6: Paste the below code into your .htaccess file and click save

Step7: Re-test your site and smile knowing that your site is probably loading in a fraction of the time it was 10  minutes ago 🙂

Make sure you BACKUP your HTACCESS file! If you don’t you can break your website and may need assistance repairing it!

Google loves to provide fast sites with great content to search traffic. So every improvement you can make is worthwhile if your sites traffic is important to you. There are several other tools I use for this same purpose with different applications. Maybe I will do another post discussing these other options!

Please note, the below htaccess code also adds expires to files, which lets browsers know to not load them new every time a person visits your site. This speeds up the site alot as well. Any questions or comments, please use the form below to get in touch!

<IfModule mod_headers.c>
# YEAR
<FilesMatch “.(ico|gif|jpg|jpeg|png|flv|pdf)$”>
Header set Cache-Control “max-age=29030400”
</FilesMatch>
# WEEK
<FilesMatch “.(js|css|swf)$”>
Header set Cache-Control “max-age=604800”
</FilesMatch>
# 24 HOURS
<FilesMatch “.(html|htm|txt|php)$”>
Header set Cache-Control “max-age=86400”
</FilesMatch>
</IfModule>

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType text/css “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType text/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 1 week”
</IfModule>
## EXPIRES CACHING ##

## Begin GZip Compression ##
# compress text, HTML, JavaScript, CSS, and 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

# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent

## End GZip Compression ##

website-design
« Prev Next »

About all-things-digital

All Things Digital is a digital marketing agency and web design company based in Long Island, New York. We are full service digital marketers offering online marketing, advertising and website design solutions for small businesses. We are website developers for: Contractors Restaurants Martial Arts Schools Pet Stores Restaurants Delis Healthcare We advertise using: Facebook Ads Google Adwords Yelp Affiliate Networks We supply content for: Marketing Campaigns Email Marketing Advertising Campaigns Business Brochures Event Flyers Business Card Designs We help businesses get: Google Reviews Facebook Reviews Yelp Reviews and more!

Recent Posts

  • What is an ADA compliant website?
  • WordPress Website Maintenance: What Is It and Is It Necessary?
  • 2025 Marketing Playbook: Essential Trends to Follow
  • Top 5 Qualities to Look for in a Web Design Company
  • Paving Contractor Funnel Explainer – Get Contractor Leads

Related posts

What is an ADA compliant website?
March 8, 2025

What is an ADA compliant website?

Have you ever wondered if your favorite website could be accessed by everyone, regardless of their abilities In our...
WordPress Website Maintenance: What Is It and Is It Necessary?
December 26, 2024

WordPress Website Maintenance: What Is It and Is It Necessary?

Ever wonder why some WordPress sites seem to run smoothly while others are constantly facing issues Keeping a website in...
2025 Marketing Playbook: Essential Trends to Follow
December 26, 2024

2025 Marketing Playbook: Essential Trends to Follow

Have you ever wondered how marketing will evolve in just a couple of years With technology growing at lightning speed, the...

Digital Agency Services

  • Email Marketing
  • Facebook Ad Management
  • GMB Optimization
  • Online Reputation Management
  • PPC Management
  • SEO Services
  • Social Media Marketing
  • Website Design

Free Strategy Session

Let's have a free one-on-one strategy call to discuss how your business can benefit from Digital Marketing. Contact us via our website and you'll also get 50% - 100% off select services (seriously).

Get Started

New York Website Design

Choosing a Local Web Designer
  • Privacy Policy
  • Sitemap
  • Locations
All Things Digital - New York Digital Marketing Company

Get the free website optimization checklist!

Whether you want a brand new site, or are looking to see if your old site is still up to par, our checklist will help! Get it today!

Get The Checklist

No Thanks!

Get Your Checklist Now!

You're almost there! Just enter your email below and get instant acces! 

By signing up you agree to our terms

75% complete

Where would you like us to send
the Website Optimization Checklist?

Don't worry. W hate spam too! Your info is safe with us!

x