{"id":384,"date":"2012-03-08T01:58:22","date_gmt":"2012-03-08T06:58:22","guid":{"rendered":"http:\/\/littlesvr.ca\/grumble\/?p=384"},"modified":"2012-12-05T00:47:22","modified_gmt":"2012-12-05T05:47:22","slug":"size-matters","status":"publish","type":"post","link":"http:\/\/littlesvr.ca\/grumble\/2012\/03\/08\/size-matters\/","title":{"rendered":"Size matters"},"content":{"rendered":"<p>I was going to show the OSTO to Chris Tyler and earlier that day, because demos never work, I tried it, from the Seneca network.<\/p>\n<p>Turns out already the OSTD is a victim of its own success. When translating the ISO Master POT file I get almost 6000 translated strings in 153 languages. I you do a bit of math &#8211; that&#8217;s a lot of text. 2.8MB in fact.<\/p>\n<p>Well the problem is that 2.8MB of stuff needs to be downloaded from the server, and it can take quite a while.<\/p>\n<p>Luckily Chris immediately suggested that I enable gzip compression on Apache. I thought that it was enabled by default, but I was wrong. Here&#8217;s what I was missing:<\/p>\n<pre>&lt;IfModule mod_deflate.c&gt;\r\n        AddOutputFilterByType DEFLATE text\/plain\r\n        AddOutputFilterByType DEFLATE text\/html\r\n        AddOutputFilterByType DEFLATE text\/xml\r\n        AddOutputFilterByType DEFLATE text\/css\r\n        AddOutputFilterByType DEFLATE application\/xml\r\n        AddOutputFilterByType DEFLATE application\/xhtml+xml\r\n        AddOutputFilterByType DEFLATE application\/rss+xml\r\n        AddOutputFilterByType DEFLATE application\/javascript\r\n        AddOutputFilterByType DEFLATE application\/x-javascript\r\n\r\n        DeflateCompressionLevel 9\r\n\r\n        DeflateFilterNote Input instream\r\n        DeflateFilterNote Output outstream\r\n        DeflateFilterNote Ratio ratio\r\n\r\n        LogFormat '\"%r\" %{outstream}n\/%{instream}n (%{ratio}n%%)'\r\ndeflate\r\n        CustomLog       logs\/deflate_log deflate\r\n&lt;\/IfModule&gt;<\/pre>\n<p>Seems to work great, thanks again Chris :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was going to show the OSTO to Chris Tyler and earlier that day, because demos never work, I tried it, from the Seneca network. Turns out already the OSTD is a victim of its own success. When translating the ISO Master POT file I get almost 6000 translated strings in 153 languages. I you &hellip; <\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-andrew","4":"post-384","6":"format-standard","7":"category-ostd","8":"category-safeforseneca"},"_links":{"self":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/comments?post=384"}],"version-history":[{"count":3,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/384\/revisions"}],"predecessor-version":[{"id":573,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/384\/revisions\/573"}],"wp:attachment":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/media?parent=384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/categories?post=384"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/tags?post=384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}