{"id":107,"date":"2012-10-04T11:18:01","date_gmt":"2012-10-04T05:48:01","guid":{"rendered":"http:\/\/www.nettigritty.com\/kb\/?p=107"},"modified":"2012-10-04T11:25:58","modified_gmt":"2012-10-04T05:55:58","slug":"speed-up-your-website-with-gzip-compression","status":"publish","type":"post","link":"https:\/\/www.nettigritty.com\/kb\/website\/speed-up-your-website-with-gzip-compression\/","title":{"rendered":"Speed up your website with gzip compression"},"content":{"rendered":"<p>* Note: This article only applies to Linux hosting. On IIS, compression is normally enabled on server level. *<\/p>\n<p>Does your website appear to be loading slow? Speed it up using gzip compress and mod_deflate. You can first verify if your site is already serving compressed content from <a target=_blank href=\"http:\/\/www.whatsmyip.org\/http-compression-test\/\">this link<\/a>. If it isn&#8217;t, add the following code in the .htaccess file under your website folder, save it and then check again for compression. Your site should be loading pages significantly faster now!<\/p>\n<p><code><br \/>\n### Enable gzip compression for PHP files<br \/>\nphp_value output_handler ob_gzhandler<\/p>\n<p>### compress text, html, javascript, css, xml:<br \/>\nAddOutputFilterByType DEFLATE text\/plain<br \/>\nAddOutputFilterByType DEFLATE text\/html<br \/>\nAddOutputFilterByType DEFLATE text\/xml<br \/>\nAddOutputFilterByType DEFLATE text\/css<br \/>\nAddOutputFilterByType DEFLATE application\/xml<br \/>\nAddOutputFilterByType DEFLATE application\/xhtml+xml<br \/>\nAddOutputFilterByType DEFLATE application\/rss+xml<br \/>\nAddOutputFilterByType DEFLATE application\/javascript<br \/>\nAddOutputFilterByType DEFLATE application\/x-javascript<\/p>\n<p>### End of compression code<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>* Note: This article only applies to Linux hosting. On IIS, compression is normally enabled on server level. * Does your website appear to be loading slow? Speed it up using gzip compress and mod_deflate. You can first verify if your site is already serving compressed content from this link. If it isn&#8217;t, add the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":9,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts\/107\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}