{"id":7983,"date":"2019-07-30T04:21:14","date_gmt":"2019-07-30T04:21:14","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=7983"},"modified":"2026-03-16T18:33:01","modified_gmt":"2026-03-16T13:03:01","slug":"learn-to-enable-gzip-compression-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/","title":{"rendered":"Learn to Enable GZIP Compression in WordPress"},"content":{"rendered":"<p>The very first solution to achieve faster load times of your WordPress CMS is to reduce your page size. Enabling GZIP compression is the simplest method to reduce the size of your website, and improve the time to first render of your web pages. When you enable GZIP compression on your server it helps to significantly reduce the amount of time to download the requested resource. In this tutorial, you will learn to enable GZIP compression on WordPress.<br \/>\nLet\u2019s start.<\/p>\n<h3>Steps to Check If GZIP Compression is Enabled<\/h3>\n<p>In order to check if the GZIP compression is already enabled on your site, you have to search the Internet and check for <strong>\u2018GZIP compression online check\u2019<\/strong>. This is one of the easiest ways to check if the GZIP is enabled on your server.<\/p>\n<h3>Steps To Enable Gzip Compression For WordPress Websites<\/h3>\n<p>You can use several different methods to enable GZIP compression on your WordPress website.<\/p>\n<h3>Enable GZIP on Apache<\/h3>\n<p>For enabling GZIP compression on Apache web server, you will need to edit your .htaccess file. Add the below lines of code to your .htaccess file. You can find the .htaccess file in the root or the WordPress site.<\/p>\n<pre class=\"lang:default decode:true \"># Compress HTML, CSS, JavaScript, Text, XML and fonts\r\nAddOutputFilterByType DEFLATE application\/javascript\r\nAddOutputFilterByType DEFLATE application\/rss+xml\r\nAddOutputFilterByType DEFLATE application\/vnd.ms-fontobject\r\nAddOutputFilterByType DEFLATE application\/x-font\r\nAddOutputFilterByType DEFLATE application\/x-font-opentype\r\nAddOutputFilterByType DEFLATE application\/x-font-otf\r\nAddOutputFilterByType DEFLATE application\/x-font-truetype\r\nAddOutputFilterByType DEFLATE application\/x-font-ttf\r\nAddOutputFilterByType DEFLATE application\/x-javascript\r\nAddOutputFilterByType DEFLATE application\/xhtml+xml\r\nAddOutputFilterByType DEFLATE application\/xml\r\nAddOutputFilterByType DEFLATE font\/opentype\r\nAddOutputFilterByType DEFLATE font\/otf\r\nAddOutputFilterByType DEFLATE font\/ttf\r\nAddOutputFilterByType DEFLATE image\/svg+xml\r\nAddOutputFilterByType DEFLATE image\/x-icon\r\nAddOutputFilterByType DEFLATE text\/css\r\nAddOutputFilterByType DEFLATE text\/html\r\nAddOutputFilterByType DEFLATE text\/javascript\r\nAddOutputFilterByType DEFLATE text\/plain\r\nAddOutputFilterByType DEFLATE text\/xml\r\n\r\n# Remove browser bugs (only needed for really old browsers)\r\nBrowserMatch ^Mozilla\/4 gzip-only-text\/html\r\nBrowserMatch ^Mozilla\/4\\.0[678] no-gzip\r\nBrowserMatch \\bMSIE !no-gzip !gzip-only-text\/html\r\nHeader append Vary User-Agent<\/pre>\n<h3>Enable GZIP with WordPress Plugin<\/h3>\n<p>You can also use a caching plugin that support GZIP compression. For instance, the WP Rocket will add GZIP compression rules to your .htaccess file and it will automatically use <strong>mod_deflate<\/strong>. For enabling this via W3 Total Cache, you will need to go under its performing section and then enable it.<\/p>\n<h3>Enable GZIP on NGINX<\/h3>\n<p>To enable GZIP on NGINX, you simple have to add the below lines to your nginx.conf configuration file:<\/p>\n<pre class=\"lang:default decode:true\">gzip on;\r\ngzip_disable \"MSIE [1-6]\\.(?!.*SV1)\";\r\ngzip_vary on;\r\ngzip_types text\/plain text\/css text\/javascript image\/svg+xml image\/x-icon application\/\r\njavascript application\/x-javascript;<\/pre>\n<p>Surely, you don\u2019t have to enable GZIP compression in WordPress, if you use our managed WordPress hosting service, in which we already include GZIP compression. If there is any issue with this, you can contact our support team via live chat or email.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The very first solution to achieve faster load times of your WordPress CMS is to reduce your page size. Enabling GZIP compression is the simplest method to reduce the size of your website, and improve the time to first render of your web pages. When you enable GZIP compression on your server it helps to [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3082],"tags":[941,942,78],"class_list":["post-7983","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-performance-optimization","tag-enable-gzip-compression","tag-gzip-compression","tag-wordpress-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Learn to Enable GZIP Compression in WordPress<\/title>\n<meta name=\"description\" content=\"The article reveals steps to check if GZIP compression is enabled along with the steps to enable the GZIP compression.\" \/>\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.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn to Enable GZIP Compression in WordPress\" \/>\n<meta property=\"og:description\" content=\"The article reveals steps to check if GZIP compression is enabled along with the steps to enable the GZIP compression.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-30T04:21:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-16T13:03:01+00:00\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/\"},\"author\":{\"name\":\"Pallavi Godse\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"headline\":\"Learn to Enable GZIP Compression in WordPress\",\"datePublished\":\"2019-07-30T04:21:14+00:00\",\"dateModified\":\"2026-03-16T13:03:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/\"},\"wordCount\":329,\"commentCount\":0,\"keywords\":[\"enable gzip compression\",\"gzip compression\",\"WordPress\"],\"articleSection\":[\"Performance Optimization\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/\",\"name\":\"Learn to Enable GZIP Compression in WordPress\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2019-07-30T04:21:14+00:00\",\"dateModified\":\"2026-03-16T13:03:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article reveals steps to check if GZIP compression is enabled along with the steps to enable the GZIP compression.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn to Enable GZIP Compression in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"sameAs\":[\"https:\/\/www.milesweb.in\"],\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn to Enable GZIP Compression in WordPress","description":"The article reveals steps to check if GZIP compression is enabled along with the steps to enable the GZIP compression.","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.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Learn to Enable GZIP Compression in WordPress","og_description":"The article reveals steps to check if GZIP compression is enabled along with the steps to enable the GZIP compression.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-07-30T04:21:14+00:00","article_modified_time":"2026-03-16T13:03:01+00:00","author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/"},"author":{"name":"Pallavi Godse","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"headline":"Learn to Enable GZIP Compression in WordPress","datePublished":"2019-07-30T04:21:14+00:00","dateModified":"2026-03-16T13:03:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/"},"wordCount":329,"commentCount":0,"keywords":["enable gzip compression","gzip compression","WordPress"],"articleSection":["Performance Optimization"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/","name":"Learn to Enable GZIP Compression in WordPress","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2019-07-30T04:21:14+00:00","dateModified":"2026-03-16T13:03:01+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article reveals steps to check if GZIP compression is enabled along with the steps to enable the GZIP compression.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-enable-gzip-compression-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Learn to Enable GZIP Compression in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=7983"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7983\/revisions"}],"predecessor-version":[{"id":7984,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7983\/revisions\/7984"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=7983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=7983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=7983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}