{"id":5519,"date":"2013-05-12T00:17:00","date_gmt":"2013-05-12T00:17:00","guid":{"rendered":""},"modified":"2026-04-18T22:45:43","modified_gmt":"2026-04-18T22:45:43","slug":"blog-performance-improvement","status":"publish","type":"post","link":"https:\/\/hellem.org\/wblog\/?p=5519","title":{"rendered":"Blog performance improvement"},"content":{"rendered":"<p>I started to get preeettyyy annoyed by the bad performance of my blog. Did some research and decided just give the two lines a try in the .htaccess file<br \/>\n<!-- codeblock lang=\"\" line=\"1\" --><\/p>\n<pre><code>\r\nAddOutputFilterByType DEFLATE text\/html text\/plain text\/xml\r\nSetOutputFilter DEFLATE \r\n<\/code><\/pre>\n<p><!-- \/codeblock --><br \/>\nAnd, damn! It seems to work immediately and provide a major performance improvement. Why have I not done this before?<\/p>\n<p>@Update:<\/p>\n<p>Also added <!-- codeblock lang=\"\" line=\"1\" --><\/p>\n<pre><code>&lt;IfModule mod_expires.c&gt;\r\n       ExpiresActive On\r\n       ExpiresByType application\/javascript \"access plus 1 week\"\r\n       ExpiresByType text\/css        \"access plus 1 month\"\r\n       ExpiresByType image\/gif       \"access plus 1 month\"\r\n       ExpiresByType image\/png       \"access plus 1 month\"\r\n       ExpiresByType image\/jpeg      \"access plus 1 month\"\r\n\r\n       # Now we have Expires: headers, ETags are unecessary and only slow things down:\r\n       FileETag None\r\n&lt;\/IfModule&gt;<\/code><\/pre>\n<p><!-- \/codeblock --><\/p>\n<p>Just now I still have some performance issues, but I suspect that to be caused by the database server struggling, not the web server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I started to get preeettyyy annoyed by the bad performance of my blog. Did some research and decided just give the two lines a try in the .htaccess file AddOutputFilterByType DEFLATE text\/html text\/plain text\/xml SetOutputFilter DEFLATE And, damn! It seems to work immediately and provide a major performance improvement. Why have I not done this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47],"tags":[],"class_list":["post-5519","post","type-post","status-publish","format-standard","hentry","category-work-geek"],"_links":{"self":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts\/5519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5519"}],"version-history":[{"count":1,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts\/5519\/revisions"}],"predecessor-version":[{"id":12104,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts\/5519\/revisions\/12104"}],"wp:attachment":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}