{"id":483,"date":"2011-01-28T00:30:38","date_gmt":"2011-11-29T21:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/using-mod_deflate-in-apache2-to-compress-everything\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-11-29T21:51:50","slug":"using-mod_deflate-in-apache2-to-compress-everything","status":"publish","type":"post","link":"\/blog\/index.php\/using-mod_deflate-in-apache2-to-compress-everything\/","title":{"rendered":"using mod_deflate in apache2 to compress everything"},"content":{"rendered":"<p>We&#8217;re trying to save bandwidth here, so we added to httpd.conf:<br \/>\nLoadModule deflate_module lib64\/httpd\/modules\/mod_deflate. so<br \/>\nSetOutputFilter DEFLATE<br \/>\nDeflateCompressionLevel 9<br \/>\nBrowserMatch ^Mozilla\/4 gzip-only-text\/html<br \/>\nBrowserMatch ^Mozilla\/4.0[678] no-gzip<br \/>\nBrowserMatch bMSIE !no-gzip !gzip-only-text\/html<br \/>\nDeflateFilterNote Input input_info<br \/>\nDeflateFilterNote Output output_info<br \/>\nDeflateFilterNote Ratio ratio_info<br \/>\nLogFormat &#8216;&#8221;%r&#8221; %b (%{input_info}n===&gt;%{output_info}n) (%{ratio_info}n%%)&#8217; deflate<br \/>\nCustomLog \/var\/log\/httpd\/deflate_log deflate<br \/>\nWe can see some entries in the \/var\/log\/httpd\/deflate_log<br \/>\n&#8220;GET \/blog\/images\/magplus.gif HTTP\/1.1&#8221; 192 (923===&gt;174) (18%)<br \/>\n&#8220;GET \/blog\/ HTTP\/1.1&#8221; 8044 (50582===&gt;8026) (15%)<br \/>\n&#8220;GET \/blog\/index.php? \/serendipity.css HTTP\/1.1&#8221; 2778 (11987===&gt;2760) (23%)<br \/>\n&#8220;GET \/blog\/templates\/translucency\/transblue.css HTTP\/1.1&#8221; 903 (2787===&gt;885) (31%)<br \/>\n&#8220;GET \/nomove.js HTTP\/1.1&#8221; 274 (566===&gt;256) (45%)<br \/>\n53\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re trying to save bandwidth here, so we added to httpd.conf: LoadModule deflate_module lib64\/httpd\/modules\/mod_deflate. so SetOutputFilter DEFLATE DeflateCompressionLevel 9 BrowserMatch ^Mozilla\/4 gzip-only-text\/html BrowserMatch ^Mozilla\/4.0[678] no-gzip BrowserMatch bMSIE !no-gzip !gzip-only-text\/html DeflateFilterNote Input input_info DeflateFilterNote Output output_info DeflateFilterNote Ratio ratio_info LogFormat &#8216;&#8221;%r&#8221; %b (%{input_info}n===&gt;%{output_info}n) (%{ratio_info}n%%)&#8217; deflate CustomLog \/var\/log\/httpd\/deflate_log deflate We can see some entries in the \/var\/log\/httpd\/deflate_log [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-483","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=483"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/483\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=483"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}