{"id":4835,"date":"2018-07-02T10:28:16","date_gmt":"2018-07-02T14:28:16","guid":{"rendered":"https:\/\/www.pair.com\/support\/kb\/?post_type=ht_kb&#038;p=4835"},"modified":"2023-02-03T13:49:37","modified_gmt":"2023-02-03T18:49:37","slug":"using-mod_deflate-for-page-compression","status":"publish","type":"ht_kb","link":"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/","title":{"rendered":"Using mod_deflate for Page Compression"},"content":{"rendered":"\n<p><span class=\"s1\"><a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/shared-hosting\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">Shared<\/p><\/a> <a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/vps\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">VPS<\/p><\/a> <a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/qs-dedicated\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px; font-weight:bold; border-radius:3px;\">Dedicated<\/p><\/a><\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is mod_deflate?<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">mod_deflate<\/span><span style=\"font-weight: 400;\"> is an Apache module that uses GZIP to compress site files. Compressing your site files can increase the connection speed between the server and visitor\u2019s browsers, thus making pages load faster. <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Compressing data before sending the information to the visitor may also reduce bandwidth usage. <\/span><span style=\"font-weight: 400;\">However, there is no guarantee that page loads will speed up or bandwidth usage will decrease if you use <\/span><span style=\"font-weight: 400; font-family: monospace;\">mod_deflate<\/span><span style=\"font-weight: 400;\">. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What Do You Need to Use mod_deflate?<\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-family: monospace;\">mod_deflate<\/span><span style=\"font-weight: 400;\"> can only be used on Apache, so it cannot be used on any other type of server. This means, that you can only add <\/span><span style=\"font-weight: 400; font-family: monospace;\">mod_deflate<\/span><span style=\"font-weight: 400;\"> on a Shared, VPS, or Dedicated accounts. WP Enthusiast and WP Professional accounts use Nginx and so cannot use the <\/span><span style=\"font-weight: 400; font-family: monospace;\">mod_deflate <\/span>module<span style=\"font-weight: 400;\">. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Compress Pages with mod_deflate<\/h3>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><span style=\"font-weight: 400;\">If your website uses WordPress, you should use zlib compression instead of mod_deflate. Read more about zlib compression here:<a href=\"https:\/\/www.pair.com\/support\/kb\/using-zlib-for-page-compression\/\" target=\"_blank\" rel=\"noreferrer noopener\"> Using zlib for Page Compression<\/a>. <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You can add the <\/span><span style=\"font-weight: 400; font-family: monospace;\">mod_deflate<\/span><span style=\"font-weight: 400;\"> module to your server by adding a line of code to your site\u2019s .htaccess file. For information about accessing your .htaccess file, see our article<\/span><a href=\"https:\/\/www.pair.com\/support\/kb\/accessing-your-htaccess-file\/\"><span style=\"font-weight: 400;\"> Accessing Your .htaccess File<\/span><\/a><span style=\"font-weight: 400;\">. <\/span><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><span style=\"font-weight: 400;\">AddOutputFilterByType DEFLATE text\/text text\/html text\/plain text\/xml text\/css application\/x-javascript application\/javascript<\/span><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">Copy this code at the end of your .htaccess and save the file.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Check if it\u2019s Working<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">There are sites where you can check to see if a site is being compressed or not. One such site is <a href=\"https:\/\/sitechecker.pro\/gzip-test\/\">https:\/\/sitechecker.pro\/gzip-test\/<\/a><\/span><span style=\"font-weight: 400;\">. You can enter the site address and the site will check to see if your site has been compressed. <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is mod_deflate? mod_deflate is an Apache module that uses GZIP to compress site files. Compressing your site files can increase the connection speed between the server and visitor\u2019s browsers, thus making pages load faster. Compressing data before sending the information to the visitor may also reduce bandwidth usage. However,&#8230;<\/p>\n","protected":false},"author":11,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[175],"ht-kb-tag":[178,176,177],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using mod_deflate for Page Compression - Knowledge Base - Pair Networks<\/title>\n<meta name=\"description\" content=\"mod_deflate is an Apache module that uses GZIP to compress site files. Compressing your site files can increase site connection speed\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using mod_deflate for Page Compression - Knowledge Base - Pair Networks\" \/>\n<meta property=\"og:description\" content=\"mod_deflate is an Apache module that uses GZIP to compress site files. Compressing your site files can increase site connection speed\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - Pair Networks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pairnetworks\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-03T18:49:37+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@pairNetworks\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/\",\"name\":\"Using mod_deflate for Page Compression - Knowledge Base - Pair Networks\",\"isPartOf\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\"},\"datePublished\":\"2018-07-02T14:28:16+00:00\",\"dateModified\":\"2023-02-03T18:49:37+00:00\",\"description\":\"mod_deflate is an Apache module that uses GZIP to compress site files. Compressing your site files can increase site connection speed\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pair.com\/support\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using mod_deflate for Page Compression\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"name\":\"Knowledge Base - Pair Networks\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\",\"name\":\"Pair Networks\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"contentUrl\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"width\":360,\"height\":360,\"caption\":\"Pair Networks\"},\"image\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pairnetworks\/\",\"https:\/\/twitter.com\/pairNetworks\",\"https:\/\/www.instagram.com\/pairnetworks\/\",\"https:\/\/www.linkedin.com\/company\/2269676\/\",\"https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/\",\"https:\/\/www.youtube.com\/user\/pairnetworks\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using mod_deflate for Page Compression - Knowledge Base - Pair Networks","description":"mod_deflate is an Apache module that uses GZIP to compress site files. Compressing your site files can increase site connection speed","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/","og_locale":"en_US","og_type":"article","og_title":"Using mod_deflate for Page Compression - Knowledge Base - Pair Networks","og_description":"mod_deflate is an Apache module that uses GZIP to compress site files. Compressing your site files can increase site connection speed","og_url":"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/","og_site_name":"Knowledge Base - Pair Networks","article_publisher":"https:\/\/www.facebook.com\/pairnetworks\/","article_modified_time":"2023-02-03T18:49:37+00:00","twitter_card":"summary_large_image","twitter_site":"@pairNetworks","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/","url":"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/","name":"Using mod_deflate for Page Compression - Knowledge Base - Pair Networks","isPartOf":{"@id":"https:\/\/www.pair.com\/support\/kb\/#website"},"datePublished":"2018-07-02T14:28:16+00:00","dateModified":"2023-02-03T18:49:37+00:00","description":"mod_deflate is an Apache module that uses GZIP to compress site files. Compressing your site files can increase site connection speed","breadcrumb":{"@id":"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pair.com\/support\/kb\/using-mod_deflate-for-page-compression\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pair.com\/support\/kb\/"},{"@type":"ListItem","position":2,"name":"Using mod_deflate for Page Compression"}]},{"@type":"WebSite","@id":"https:\/\/www.pair.com\/support\/kb\/#website","url":"https:\/\/www.pair.com\/support\/kb\/","name":"Knowledge Base - Pair Networks","description":"","publisher":{"@id":"https:\/\/www.pair.com\/support\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pair.com\/support\/kb\/#organization","name":"Pair Networks","url":"https:\/\/www.pair.com\/support\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","contentUrl":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","width":360,"height":360,"caption":"Pair Networks"},"image":{"@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pairnetworks\/","https:\/\/twitter.com\/pairNetworks","https:\/\/www.instagram.com\/pairnetworks\/","https:\/\/www.linkedin.com\/company\/2269676\/","https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/","https:\/\/www.youtube.com\/user\/pairnetworks"]}]}},"_links":{"self":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/4835"}],"collection":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/comments?post=4835"}],"version-history":[{"count":6,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/4835\/revisions"}],"predecessor-version":[{"id":9102,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/4835\/revisions\/9102"}],"wp:attachment":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/media?parent=4835"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=4835"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=4835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}