{"id":40,"date":"2020-07-05T14:55:26","date_gmt":"2020-07-05T14:55:26","guid":{"rendered":"https:\/\/alavps.com\/blog\/?p=40"},"modified":"2020-07-05T14:55:26","modified_gmt":"2020-07-05T14:55:26","slug":"enable-gzip-compression-to-speed-up-the-loading-of-your-website","status":"publish","type":"post","link":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/","title":{"rendered":"Enable GZIP compression to speed up the loading of your website"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p>In this guide, we are going to explain how to activate the compression of certain static contents of your website so that the aforementioned contents occupy a smaller size and the time required to download the page is reduced.<\/p>\n<p>By activating the <a href=\"https:\/\/www.gnu.org\/software\/gzip\/\">GZIP<\/a> on your website, you will notice that your website loads a little faster and you will also save bandwidth. This is all advantage to you..<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-41 size-full lazyload\" data-src=\"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png\" alt=\"\" width=\"574\" height=\"231\" data-srcset=\"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png 574w, https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search-300x121.png 300w\" data-sizes=\"(max-width: 574px) 100vw, 574px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 574px; --smush-placeholder-aspect-ratio: 574\/231;\" \/><\/p>\n<p>To follow this guide you need to have an Apache webserver with the mod_deflate module activated, this is the case of our <a href=\"https:\/\/alavps.com\">hosting servers<\/a>, so if you have a hosting plan or reseller contracted with us you can follow the instructions in this guide.<\/p>\n<p>Enable GZIP compression of CSS, Javascript, XML, HTML files, etc. It is as easy as adding the following to the .htaccess file located in the root directory of your website :<\/p>\n<blockquote>\n<pre>&lt;IfModule mod_filter.c&gt;\r\nAddOutputFilterByType DEFLATE application \/ atom + xml application \/ javascript application \/ json application \/ rss + xml application \/ xhtml + xml application \/ xml image \/ svg + xml image \/ x-icon text \/ css text \/ html text \/ plain text \/ x-component text \/ xml\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<\/blockquote>\n<p>In case you have a <a href=\"https:\/\/alavps.com\/shared.html\" target=\"_blank\" rel=\"noopener noreferrer\">shared<\/a> or reseller hosting plan with us, the .htaccess file should be located at public_html \/ .htaccess.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to explain how to activate the compression of certain static contents of your website so that the aforementioned contents occupy a smaller size and the time required to download the page is reduced. By activating the GZIP on your website, you will notice that your website loads a little [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":41,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[8],"class_list":["post-40","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-tips","tag-gzip"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Enable GZIP compression to speed up the loading of your website - Alavps Blog<\/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:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enable GZIP compression to speed up the loading of your website - Alavps Blog\" \/>\n<meta property=\"og:description\" content=\"In this guide, we are going to explain how to activate the compression of certain static contents of your website so that the aforementioned contents occupy a smaller size and the time required to download the page is reduced. By activating the GZIP on your website, you will notice that your website loads a little [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/\" \/>\n<meta property=\"og:site_name\" content=\"Alavps Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-05T14:55:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png\" \/>\n\t<meta property=\"og:image:width\" content=\"574\" \/>\n\t<meta property=\"og:image:height\" content=\"231\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"alavpsblog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"alavpsblog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/\"},\"author\":{\"name\":\"alavpsblog\",\"@id\":\"https:\/\/alavps.com\/blog\/#\/schema\/person\/67433f2932ad1e398db0b282cc965644\"},\"headline\":\"Enable GZIP compression to speed up the loading of your website\",\"datePublished\":\"2020-07-05T14:55:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/\"},\"wordCount\":176,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/alavps.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png\",\"keywords\":[\"gzip\"],\"articleSection\":[\"Website Tips\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/\",\"url\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/\",\"name\":\"Enable GZIP compression to speed up the loading of your website - Alavps Blog\",\"isPartOf\":{\"@id\":\"https:\/\/alavps.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png\",\"datePublished\":\"2020-07-05T14:55:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#primaryimage\",\"url\":\"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png\",\"contentUrl\":\"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png\",\"width\":574,\"height\":231},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/alavps.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enable GZIP compression to speed up the loading of your website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/alavps.com\/blog\/#website\",\"url\":\"https:\/\/alavps.com\/blog\/\",\"name\":\"Alavps\",\"description\":\"All About VPS &amp; Hosting\",\"publisher\":{\"@id\":\"https:\/\/alavps.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/alavps.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/alavps.com\/blog\/#organization\",\"name\":\"Alavps\",\"url\":\"https:\/\/alavps.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/alavps.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-logo.png\",\"contentUrl\":\"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-logo.png\",\"width\":225,\"height\":44,\"caption\":\"Alavps\"},\"image\":{\"@id\":\"https:\/\/alavps.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/alavps.com\/blog\/#\/schema\/person\/67433f2932ad1e398db0b282cc965644\",\"name\":\"alavpsblog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/8b3790daa42781f4c339d739e7ca7b1a944f02d59a994fad72790b42612ff000?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8b3790daa42781f4c339d739e7ca7b1a944f02d59a994fad72790b42612ff000?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8b3790daa42781f4c339d739e7ca7b1a944f02d59a994fad72790b42612ff000?s=96&d=mm&r=g\",\"caption\":\"alavpsblog\"},\"url\":\"https:\/\/alavps.com\/blog\/author\/alavpsblog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Enable GZIP compression to speed up the loading of your website - Alavps Blog","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:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/","og_locale":"en_US","og_type":"article","og_title":"Enable GZIP compression to speed up the loading of your website - Alavps Blog","og_description":"In this guide, we are going to explain how to activate the compression of certain static contents of your website so that the aforementioned contents occupy a smaller size and the time required to download the page is reduced. By activating the GZIP on your website, you will notice that your website loads a little [&hellip;]","og_url":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/","og_site_name":"Alavps Blog","article_published_time":"2020-07-05T14:55:26+00:00","og_image":[{"width":574,"height":231,"url":"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png","type":"image\/png"}],"author":"alavpsblog","twitter_card":"summary_large_image","twitter_misc":{"Written by":"alavpsblog","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#article","isPartOf":{"@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/"},"author":{"name":"alavpsblog","@id":"https:\/\/alavps.com\/blog\/#\/schema\/person\/67433f2932ad1e398db0b282cc965644"},"headline":"Enable GZIP compression to speed up the loading of your website","datePublished":"2020-07-05T14:55:26+00:00","mainEntityOfPage":{"@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/"},"wordCount":176,"commentCount":0,"publisher":{"@id":"https:\/\/alavps.com\/blog\/#organization"},"image":{"@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#primaryimage"},"thumbnailUrl":"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png","keywords":["gzip"],"articleSection":["Website Tips"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/","url":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/","name":"Enable GZIP compression to speed up the loading of your website - Alavps Blog","isPartOf":{"@id":"https:\/\/alavps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#primaryimage"},"image":{"@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#primaryimage"},"thumbnailUrl":"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png","datePublished":"2020-07-05T14:55:26+00:00","breadcrumb":{"@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#primaryimage","url":"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png","contentUrl":"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/07\/gzip-Google-Search.png","width":574,"height":231},{"@type":"BreadcrumbList","@id":"https:\/\/alavps.com\/blog\/enable-gzip-compression-to-speed-up-the-loading-of-your-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/alavps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Enable GZIP compression to speed up the loading of your website"}]},{"@type":"WebSite","@id":"https:\/\/alavps.com\/blog\/#website","url":"https:\/\/alavps.com\/blog\/","name":"Alavps","description":"All About VPS &amp; Hosting","publisher":{"@id":"https:\/\/alavps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/alavps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/alavps.com\/blog\/#organization","name":"Alavps","url":"https:\/\/alavps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/alavps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-logo.png","contentUrl":"https:\/\/alavps.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-logo.png","width":225,"height":44,"caption":"Alavps"},"image":{"@id":"https:\/\/alavps.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/alavps.com\/blog\/#\/schema\/person\/67433f2932ad1e398db0b282cc965644","name":"alavpsblog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8b3790daa42781f4c339d739e7ca7b1a944f02d59a994fad72790b42612ff000?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8b3790daa42781f4c339d739e7ca7b1a944f02d59a994fad72790b42612ff000?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8b3790daa42781f4c339d739e7ca7b1a944f02d59a994fad72790b42612ff000?s=96&d=mm&r=g","caption":"alavpsblog"},"url":"https:\/\/alavps.com\/blog\/author\/alavpsblog\/"}]}},"_links":{"self":[{"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":2,"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/posts\/40\/revisions\/43"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/media\/41"}],"wp:attachment":[{"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alavps.com\/blog\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}