{"id":10951,"date":"2024-06-04T19:17:47","date_gmt":"2024-06-04T19:17:47","guid":{"rendered":"https:\/\/truehost.co.ke\/support\/?p=5916"},"modified":"2024-08-15T10:48:03","modified_gmt":"2024-08-15T10:48:03","password":"","slug":"enabling-gzip-compression-on-cpanel-websites-2","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/","title":{"rendered":"Enabling GZIP Compression on Cpanel Websites"},"content":{"rendered":"\n<p>GZIP is a utility that is used to compress and decompress files. Making files smaller by compression contributes to <strong>faster network transfers<\/strong> and in the case of website files, your <strong>websites will load faster<\/strong>.<\/p>\n\n\n\n<p>When GZIP compression is enabled in a webserver, the server will always return smaller files (compressed) to the requests from browsers. Modern browsers understand and accept compressed files.Apart from speeding up website loading time and faster file transfers, GZIP compression also <strong>saves on bandwidth<\/strong>. Website content will always be served in a compressed form by the Apache Web Server.<\/p>\n\n\n\n<p>The following are steps on how to enable GZIP compression on Cpanel websites;<\/p>\n\n\n\n<p><strong>Step 1<\/strong><\/p>\n\n\n\n<p>Login to the Cpanel where your website is hosted. You can login to your Cpanel by typing your domain e.g&nbsp; <a href=\"http:\/\/www.truehost\/cpanel\"><strong>www.truehost\/cpanel<\/strong><\/a><strong>.<\/strong><\/p>\n\n\n\n<p>Navigate to the <strong>Software Section<\/strong>, and click on the <strong>\u201cOptimize Website\u201d<\/strong> Link<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"348\" src=\"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/09\/image.png\" alt=\"\" class=\"wp-image-5919\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image.png 657w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-300x159.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-50x26.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-600x318.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-320x169.png 320w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/figure>\n\n\n\n\n\n<p><strong>Step 2<\/strong><\/p>\n\n\n\n<p>Inthe Optimize Website section, you will see three options Listed as follows;<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"a\"><li>Disabled- <em>turns off the compression<\/em><\/li><li>Compress all content <em>&#8211; enables compression<\/em><\/li><li>Compress the specified MIME types- <em>allows one to specify the MIME file types to be compressed.<\/em><\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"349\" src=\"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/09\/image-1.png\" alt=\"\" class=\"wp-image-5921\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-1.png 676w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-1-300x155.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-1-50x26.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-1-600x310.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-1-320x165.png 320w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n\n\n<p><strong>Step 3<\/strong><\/p>\n\n\n\n<p>Choose the second option (Compress All Content) and Click on the \u201cUpdate Settings\u201d button.<\/p>\n\n\n\n<p>When these settings are applied successfully, the following page will be displayed;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"261\" src=\"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/09\/image-2.png\" alt=\"\" class=\"wp-image-5922\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-2.png 624w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-2-300x125.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-2-50x21.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-2-600x251.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/09\/image-2-320x134.png 320w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n\n\n<p>This is a confirmation message that the settings were applied successfully.<\/p>\n\n\n\n<p>In summary, GZIP is the mostly used method used in webservers to compress content served to browsers. The compression is done seamlessly for files transmitted over the internet. GZIP compression can minimize the size of CSS, HTML and JavaScript files by approximately 90%. This implies fast website loading speeds, bandwidth savings of up to 85% and fast network transfers. This sounds great for your clients and other users of your website, right?<\/p>\n\n\n\n<p><strong>It will work upon successful implementation of the above guide.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GZIP is a utility that is used to compress and decompress files. Making files smaller by compression contributes to faster network transfers and in the case of website files, your websites will load faster. When GZIP compression is enabled in a webserver, the server will always return smaller files (compressed) to the requests from browsers. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1822],"doc_tag":[],"class_list":["post-10951","docs","type-docs","status-publish","hentry","doc_category-cpanel"],"year_month":"2026-06","word_count":301,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"kt","author_nicename":"truehost","author_url":"https:\/\/truehost.com\/support\/author\/truehost\/"},"doc_category_info":[{"term_name":"Cpanel","term_url":"https:\/\/truehost.com\/support\/docs-category\/cpanel\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Enabling GZIP Compression on Cpanel Websites -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enabling GZIP Compression on Cpanel Websites -\" \/>\n<meta property=\"og:description\" content=\"GZIP is a utility that is used to compress and decompress files. Making files smaller by compression contributes to faster network transfers and in the case of website files, your websites will load faster. When GZIP compression is enabled in a webserver, the server will always return smaller files (compressed) to the requests from browsers. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-15T10:48:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/09\/image.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/enabling-gzip-compression-on-cpanel-websites-2\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/enabling-gzip-compression-on-cpanel-websites-2\\\/\",\"name\":\"Enabling GZIP Compression on Cpanel Websites -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/enabling-gzip-compression-on-cpanel-websites-2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/enabling-gzip-compression-on-cpanel-websites-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/image.png\",\"datePublished\":\"2024-06-04T19:17:47+00:00\",\"dateModified\":\"2024-08-15T10:48:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/enabling-gzip-compression-on-cpanel-websites-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/enabling-gzip-compression-on-cpanel-websites-2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/enabling-gzip-compression-on-cpanel-websites-2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/image.png\",\"contentUrl\":\"https:\\\/\\\/truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/image.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/enabling-gzip-compression-on-cpanel-websites-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enabling GZIP Compression on Cpanel Websites\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Enabling GZIP Compression on Cpanel Websites -","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:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/","og_locale":"en_US","og_type":"article","og_title":"Enabling GZIP Compression on Cpanel Websites -","og_description":"GZIP is a utility that is used to compress and decompress files. Making files smaller by compression contributes to faster network transfers and in the case of website files, your websites will load faster. When GZIP compression is enabled in a webserver, the server will always return smaller files (compressed) to the requests from browsers. [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/","article_modified_time":"2024-08-15T10:48:03+00:00","og_image":[{"url":"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/09\/image.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/","name":"Enabling GZIP Compression on Cpanel Websites -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/09\/image.png","datePublished":"2024-06-04T19:17:47+00:00","dateModified":"2024-08-15T10:48:03+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/#primaryimage","url":"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/09\/image.png","contentUrl":"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/09\/image.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/enabling-gzip-compression-on-cpanel-websites-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"Enabling GZIP Compression on Cpanel Websites"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/10951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=10951"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/10951\/revisions"}],"predecessor-version":[{"id":12824,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/10951\/revisions\/12824"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=10951"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=10951"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=10951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}