{"id":18753,"date":"2020-02-26T10:22:06","date_gmt":"2020-02-26T15:22:06","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=18753"},"modified":"2024-02-22T10:04:31","modified_gmt":"2024-02-22T15:04:31","slug":"what-is-gzip-compression-and-how-do-i-enable-it","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/what-is-gzip-compression-and-how-do-i-enable-it\/","title":{"rendered":"What is Gzip Compression and How Do I Enable it?"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><p>Gzip compresses your webpages and style sheets before sending them over to the browser. This drastically reduces the transfer time to your users, because the files are much smaller once compressed. A smaller transfer will also reduce your bandwidth usage and help with any limits imposed by your <a href=\"\/wordpress-hosting\/\">WordPress host<\/a>.<\/p>\n<p>Gzip compression should be used to help improve your page speed optimizations in most cases. Enabling gzip compression is standard practice. If you are not using it for some reason, your webpages are likely slower than your competitors. The following guide will show you how to enable Gzip compression in W3 Total Cache.<\/p>\n<div class=\"boldgrid-section\" style=\"margin-top: 60px;\">\n<div class=\"container w3tc-radius\" style=\"border-width: 0px; background-image: url('https:\/\/www.boldgrid.com\/wp-content\/uploads\/2023\/07\/upsell-darker-alt.png'); background-size: cover; background-position: 50% 5%;\" data-image-url=\"https:\/\/www.boldgrid.com\/wp-content\/uploads\/2023\/07\/upsell-darker-alt.png\">\n<div class=\"row upsell-column\" style=\"padding-top: 2em; padding-bottom: 2em; color: #ffffff;\">\n<div class=\"col-lg-1 col-md-1 col-sm-12 col-xs-12 hidden-sm\">&nbsp;<\/div>\n<div class=\"col-lg-5 col-md-6 col-xs-12 col-sm-7\">\n<p class=\"\" style=\"color: #ffffff; margin-top: 0;\">Unlock more speed with GZip Compression and <strong>W3 Total Cache Pro<\/strong><\/p>\n<\/div>\n<div class=\"col-lg-6 col-md-5 col-sm-5 col-xs-12 text-center align-column-center\">\n<p class=\"\" style=\"border-width: 0px;\"><a class=\"button-w3tc-white\" style=\"border: 2px solid #30BEC4; font-size: 18px; padding: 15px 30px;\" href=\"https:\/\/www.boldgrid.com\/w3-total-cache\/#pricing\">View Plans<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h2 id=\"enabling-gzip-compression-in-w3-total-cache\">Enabling Gzip Compression in W3 Total Cache<\/h2>\n<p>To enable Gzip, first you must ensure you have Browser Cache enabled.<\/p>\n<ul>\n<li>In the Dashboard, Navigate to <b>Performance &rarr; General Settings<br>\n<\/b><\/li>\n<li>Scroll down to the Browser Cache section<\/li>\n<li>Enable Browser Cache if not already, and Click Save All Settings<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18758\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-browser-cache.jpg\" alt=\"\" width=\"652\" height=\"247\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-browser-cache.jpg 652w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-browser-cache-300x114.jpg 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-browser-cache-610x231.jpg 610w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-browser-cache-250x95.jpg 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-browser-cache-550x208.jpg 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-browser-cache-475x180.jpg 475w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/p>\n<p>Now that Browser Cache is enabled, we can enable Gzip in W3 Total Cache.<\/p>\n<ul>\n<li>In the Dashboard, Navigate to <b>Performance &rarr; Browser Cache<br>\n<\/b><\/li>\n<li>Select Enable HTTP (gzip) compression<\/li>\n<li>Click Save all Settings<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18759\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-gzip-compression.jpg\" alt=\"\" width=\"652\" height=\"247\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-gzip-compression.jpg 652w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-gzip-compression-300x114.jpg 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-gzip-compression-610x231.jpg 610w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-gzip-compression-250x95.jpg 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-gzip-compression-550x208.jpg 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2020\/02\/18753-enable-gzip-compression-475x180.jpg 475w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/p>\n<p>Congratulations! You have now enabled gzip for your WordPress website. After enabling Gzip, W3 Total Cache will write the necessary rules in your <a href=\"https:\/\/www.boldgrid.com\/support\/troubleshooting\/troubleshoot-htaccess-problems\/\">.htaccess file<\/a>.<\/p>\n<h2 id=\"gzip-requirements\">Gzip Requirements<\/h2>\n<p>If you are using Apache as your webserver, mod_deflate needs to be enabled. To check, you can run a compatibility check to determine what server modules and resources are available. If you are running Apache and do not see it listed, you can contact your host to have them enable it for you.<\/p>\n<p>NOTE: If you have mod_deflate enabled and the compatibility check is showing &ldquo;Not detected&rdquo; it most likely means that you don&rsquo;t use mod_php mode, so you are probably running php-fpm. We cannot detect Apache modules in that case, but that doesn&rsquo;t mean it is not installed\/active.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Gzip compresses your webpages and style sheets before sending them over to the browser. This drastically reduces the transfer time to your users, because the files are much smaller once compressed. A smaller transfer will also reduce your bandwidth usage and help with any limits imposed by your WordPress host. Gzip compression should be used [&hellip;]<\/p>\n","protected":false},"author":529,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"What is Gzip Compression and How Do I Enable it?","bgseo_description":"Gzip compresses your webpages and style sheets before sending them over to the browser. This drastically reduces transfer time and bandwidth, since the files are much smaller once compressed. This article will walk you through enabling Gzip on WordPress using W3 Total Cache. ","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[745,692],"tags":[],"class_list":["post-18753","post","type-post","status-publish","format-standard","hentry","category-browser-cache","category-w3-total-cache"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/18753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/529"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=18753"}],"version-history":[{"count":14,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/18753\/revisions"}],"predecessor-version":[{"id":125531,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/18753\/revisions\/125531"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=18753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=18753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=18753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}